diff --git a/mmgen/cfg.py b/mmgen/cfg.py index 53e763cf..11af2b66 100755 --- a/mmgen/cfg.py +++ b/mmgen/cfg.py @@ -35,7 +35,7 @@ def die2(exit_val, s): class GlobalConstants(Lockable): """ These values are non-runtime-configurable. They’re constant for a given machine, - user, executable and MMGen release. + user, executable and MMGen Wallet version """ _autolock = True @@ -367,6 +367,7 @@ class Config(Lockable): 'MMGEN_ENABLE_ERIGON', 'MMGEN_DISABLE_COLOR', ) + _infile_opts = ( 'keys_from_file', 'mmgen_keys_from_file', @@ -375,6 +376,7 @@ class Config(Lockable): 'comment_file', 'contract_data', ) + # Auto-typechecked and auto-set opts - first value in list is the default _ov = namedtuple('autoset_opt_info', ['type', 'choices']) _autoset_opts = { diff --git a/setup.py b/setup.py index 18d3d13e..452d3d1f 100755 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ import sys, os from pathlib import Path -from subprocess import run, PIPE +from subprocess import run from setuptools import setup, Extension from setuptools.command.build_ext import build_ext diff --git a/test/misc/opts_main.py b/test/misc/opts_main.py index 091e8df1..390ea25c 100755 --- a/test/misc/opts_main.py +++ b/test/misc/opts_main.py @@ -84,5 +84,5 @@ for k in ('fee_estimate_mode',): # _autoset_opts msg('{:30} {}'.format(f'cfg.{k}:', getattr(cfg, k))) msg('') -for n, k in enumerate(cfg._args, 1): - msg(f'arg{n}: {k}') +for n, arg in enumerate(cfg._args, 1): + msg(f'arg{n}: {arg}') diff --git a/test/test-release.d/cfg.sh b/test/test-release.d/cfg.sh index 8f631ec8..a41f8b13 100755 --- a/test/test-release.d/cfg.sh +++ b/test/test-release.d/cfg.sh @@ -74,6 +74,7 @@ init_tests() { [ "$VERBOSE" ] || STDOUT_DEVNULL='> /dev/null' d_lint="code errors with static code analyzer" t_lint=" + b ruff check setup.py $STDOUT_DEVNULL b ruff check mmgen $STDOUT_DEVNULL b ruff check test $STDOUT_DEVNULL b ruff check examples $STDOUT_DEVNULL