From 5c4e20cbdabdadb80d80810fdcd45746da858374 Mon Sep 17 00:00:00 2001 From: The MMGen Project Date: Sat, 24 Oct 2026 15:56:46 +0000 Subject: [PATCH] pylint: pyproject.toml, directives --- mmgen_node_tools/Util.py | 2 +- pyproject.toml | 23 ++++++++++++----------- test/cmdtest_d/misc.py | 2 +- 3 files changed, 14 insertions(+), 13 deletions(-) diff --git a/mmgen_node_tools/Util.py b/mmgen_node_tools/Util.py index 76ed8ce..e5008c5 100644 --- a/mmgen_node_tools/Util.py +++ b/mmgen_node_tools/Util.py @@ -44,7 +44,7 @@ def get_url(url, gzip_ok=False, proxy=None, timeout=60, verbose=False, debug=Fal print('get_url():') print(' url', url) print(' gzip_ok:', gzip_ok, 'proxy:', proxy, 'timeout:', timeout, 'verbose:', verbose) - import pycurl, io + import pycurl, io # pylint: disable=import-error # unused code c = pycurl.Curl() c_out = io.StringIO() c.setopt(pycurl.WRITEFUNCTION, c_out.write) diff --git a/pyproject.toml b/pyproject.toml index 957b8ca..c1b6b76 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,21 +37,22 @@ ignore = [ [tool.pylint.format] indent-string = "\t" indent-after-paren = 2 -max-line-length = 110 +max-line-length = 106 [tool.pylint.main] -py-version = "3.7" recursive = true +errors-only = true jobs = 0 +ignore = [ + "data", +] [tool.pylint."messages control"] -ignored-modules = [ - "mmgen.term", - "mmgen.color", -] -ignored-classes = [ - "mmgen_node_tools.Ticker.Ticker.base", - "mmgen_node_tools.Ticker.DataSource.base", - "mmgen_node_tools.PeerBlocks.Display", - "mmgen_node_tools.PollDisplay.PollDisplay", +disable = [ + "no-method-argument", + "possibly-used-before-assignment", + "no-member", ] + +[tool.pylint.miscellaneous] +notes = ["FIXME", "TODO", "DEBUG", "WIP", "NB"] diff --git a/test/cmdtest_d/misc.py b/test/cmdtest_d/misc.py index dbed452..4275af4 100755 --- a/test/cmdtest_d/misc.py +++ b/test/cmdtest_d/misc.py @@ -16,7 +16,7 @@ import os, shutil from ..include.common import cfg from .base import CmdTestBase -from .httpd.ticker import TickerServer +from .httpd.ticker import TickerServer # pylint: disable=import-error,no-name-in-module refdir = os.path.join('test','ref','ticker')