minor fixes and cleanups

This commit is contained in:
The MMGen Project 2026-08-23 09:14:00 +00:00
commit 37d86489be
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2
5 changed files with 14 additions and 11 deletions

View file

@ -51,8 +51,8 @@ jobs:
run: |
ruff check --output-format=github setup.py
ruff check --output-format=github mmgen
ruff check --output-format=github test
ruff check --output-format=github examples
ruff check --output-format=github test
- name: Check code vulnerabilities with Bandit static analyzer
run: |
@ -66,6 +66,6 @@ jobs:
run: |
pylint setup.py
pylint mmgen
pylint examples
pylint test
pylint --disable=relative-beyond-top-level test/cmdtest_d
pylint examples

View file

@ -539,9 +539,11 @@ class Config(Lockable):
self.alice or
self.carol or
self.miner or
gc.prog_name == f'{gc.proj_id}-regtest'):
gc.prog_name == 'mmgen-regtest'):
if self.coin != 'XMR':
self.network = 'regtest'
if gc.prog_name == 'mmgen-regtest' and self.coin != 'BTC':
self.bdb_wallet = True
self.test_user = (
'bob' if self.bob else
'alice' if self.alice else

View file

@ -16,7 +16,6 @@
secp256k1 = secp256k1;
less = less; # test suite (cmdtest.py regtest)
procps = procps; # test suite (pgrep)
ruff = ruff;
## For test suite with --pure:
e2fsprogs = e2fsprogs;
@ -25,20 +24,22 @@
};
python-packages = with python.pkgs; {
pip = pip;
setuptools = setuptools;
build = build;
wheel = wheel;
pip = pip;
# setup.cfg:
gmpy2 = gmpy2;
cryptography = cryptography;
pynacl = pynacl;
ecdsa = ecdsa;
aiohttp = aiohttp;
requests = requests;
lxml = lxml;
py-scrypt = py-scrypt;
semantic-version = semantic-version;
pexpect = pexpect; # test suite
pycoin = pycoin; # test suite
lxml = lxml;
# test suite:
pycoin = pycoin;
ecdsa = ecdsa;
pexpect = pexpect;
};
}

View file

@ -1,8 +1,8 @@
[build-system]
requires = [
"setuptools>=57",
"wheel>=0.36.0",
"build>=0.5.1",
"wheel>=0.36.0",
]
build-backend = "setuptools.build_meta"

View file

@ -23,7 +23,7 @@ test.cmdtest_d.base: Base class for the cmdtest.py test suite
import sys, os
from mmgen.cfg import gc
from mmgen.util import msg, distro_codename
from mmgen.util import msg, distro_codename # pylint: disable=no-name-in-module
from mmgen.color import gray, purple, yellow
from ..include.common import write_to_file, read_from_file, imsg