test-release.sh: add lint test combining all available code checkers

This commit is contained in:
The MMGen Project 2026-09-06 10:08:42 +00:00
commit bd73cb07b8
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2
3 changed files with 18 additions and 5 deletions

View file

@ -1 +1 @@
16.3.0dev1
16.3.0dev2

View file

@ -18,7 +18,7 @@ from mmgen.cfg import Config
from mmgen.util import make_chksum_6
from mmgen.protocol import init_proto
from mmgen.wallet.mmgen import wallet as MMGenWallet
from mmgen.tx.file import txfile_json_dumps
from mmgen.tx.file import txfile_json_dumps # pylint: disable=no-name-in-module
from ..include.common import imsg, make_burn_addr, gr_uc

View file

@ -8,7 +8,7 @@
# https://github.com/mmgen/mmgen-wallet
# https://gitlab.com/mmgen/mmgen-wallet
all_tests="dep dev ruff pylint bandit gcc obj color daemon mod hash ref altref altgen xmr geth reth autosign btc btc_tn btc_rt bch bch_tn bch_rt ltc ltc_tn ltc_rt tool tool2 gen alt help"
all_tests="dep dev lint ruff pylint bandit gcc obj color daemon mod hash ref altref altgen xmr geth reth autosign btc btc_tn btc_rt bch bch_tn bch_rt ltc ltc_tn ltc_rt tool tool2 gen alt help"
groups_desc="
default - All tests minus the extra tests
@ -20,10 +20,10 @@ groups_desc="
init_groups() {
dfl_tests='dep daemon alt obj color mod hash ref tool tool2 gen help autosign btc btc_tn btc_rt altref altgen bch bch_rt ltc ltc_rt geth reth etc rune xmr'
extra_tests='dep dev ruff pylint bandit gcc autosign_live ltc_tn bch_tn'
extra_tests='dep dev lint ruff pylint bandit gcc autosign_live ltc_tn bch_tn'
noalt_tests='dep daemon alt obj color mod hash ref tool tool2 gen help autosign btc btc_tn btc_rt'
quick_tests='dep daemon alt obj color mod hash ref tool tool2 gen help autosign btc btc_rt altref altgen geth etc rune xmr'
qskip_tests='ruff btc_tn bch bch_rt ltc ltc_rt'
qskip_tests='lint ruff btc_tn bch bch_rt ltc ltc_rt'
noalt_ok_tests='ruff'
[ "$MSYS2" ] && SKIP_LIST='autosign autosign_live'
@ -105,6 +105,19 @@ init_tests() {
- python3 ./setup.py build_ext --inplace $STDOUT_DEVNULL
"
d_lint="code errors and vulnerabilities with all available tools"
e_lint="Error checking failed!"
t_lint="
- # ruff
$t_ruff
- # bandit
$t_bandit
- # gcc -fanalyzer
$t_gcc
- # pylint
$t_pylint
"
d_daemon="low-level subsystems involving coin daemons"
t_daemon="- $daemontest_py --exclude exec"