add scripts dir to pylint check

This commit is contained in:
The MMGen Project 2026-09-13 15:50:14 +00:00
commit 9104df0926
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2
5 changed files with 6 additions and 3 deletions

View file

@ -70,5 +70,6 @@ jobs:
pylint setup.py
pylint mmgen
pylint examples
pylint scripts
pylint test
pylint --disable=relative-beyond-top-level test/cmdtest_d

View file

@ -85,6 +85,7 @@ errors-only = true
jobs = 0
ignore = [
"data",
"create-bip-hd-chain-params.py"
]
extension-pkg-allow-list = [
"mmgen.proto.secp256k1.secp256k1",

View file

@ -30,7 +30,7 @@ def exec_wrapper_init():
repo_root = exec_wrapper_os.getcwd() # assume we’re in repo root
exec_wrapper_sys.path[0] = repo_root
# ensure loading of mmgen mods from overlay tree, not repo root:
from test.overlay import overlay_setup
from test.overlay import overlay_setup # pylint: disable=import-error
overlay_setup(repo_root)
else:
exec_wrapper_sys.path.pop(0)
@ -51,7 +51,7 @@ def exec_wrapper_write_traceback(e, exit_val):
import traceback
cwd = os.getcwd()
sys.path.insert(0, cwd)
from test.overlay import get_overlay_tree_dir
from test.overlay import get_overlay_tree_dir # pylint: disable=import-error
overlay_path_pfx = os.path.relpath(get_overlay_tree_dir(cwd)) + '/'
def fixup_fn(fn_in):

View file

@ -31,5 +31,5 @@ cfg = Config(opts_data=opts_data)
if len(cfg._args) != 1:
cfg._usage()
tx = asyncio.run(CompletedTX(cfg._args[0], quiet_open=True))
tx = asyncio.run(CompletedTX(cfg=cfg._args[0], quiet_open=True))
tx.file.write(ask_tty=False, ask_overwrite=not cfg.quiet, ask_write=not cfg.quiet)

View file

@ -87,6 +87,7 @@ init_tests() {
- $pylint setup.py
- $pylint mmgen
- $pylint examples
- $pylint scripts
- $pylint test
- $pylint --disable=relative-beyond-top-level test/cmdtest_d
"