pylint: pyproject.toml, directives
This commit is contained in:
parent
d89e7f63bd
commit
5c4e20cbda
3 changed files with 14 additions and 13 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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"]
|
||||
|
|
|
|||
|
|
@ -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')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue