From 9104df0926084198d0f40aab81329fcbe200d7b3 Mon Sep 17 00:00:00 2001 From: The MMGen Project Date: Sun, 13 Sep 2026 15:50:14 +0000 Subject: [PATCH] add `scripts` dir to pylint check --- .github/workflows/lint.yaml | 1 + pyproject.toml | 1 + scripts/exec_wrapper.py | 4 ++-- scripts/tx-v2-to-v3.py | 2 +- test/test-release.d/cfg.sh | 1 + 5 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 23ed2ae7..4c964985 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -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 diff --git a/pyproject.toml b/pyproject.toml index 1cdf77de..ab11b2e3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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", diff --git a/scripts/exec_wrapper.py b/scripts/exec_wrapper.py index ec9d8e49..41ed39a0 100755 --- a/scripts/exec_wrapper.py +++ b/scripts/exec_wrapper.py @@ -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): diff --git a/scripts/tx-v2-to-v3.py b/scripts/tx-v2-to-v3.py index 0e7e0cf8..a85cb20f 100755 --- a/scripts/tx-v2-to-v3.py +++ b/scripts/tx-v2-to-v3.py @@ -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) diff --git a/test/test-release.d/cfg.sh b/test/test-release.d/cfg.sh index f99cccc1..8b9bb6dc 100755 --- a/test/test-release.d/cfg.sh +++ b/test/test-release.d/cfg.sh @@ -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 "