add scripts dir to pylint check
This commit is contained in:
parent
41e763c894
commit
9104df0926
5 changed files with 6 additions and 3 deletions
1
.github/workflows/lint.yaml
vendored
1
.github/workflows/lint.yaml
vendored
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue