One-KVM/testenv/linters/pylint.ini
Adam Outler 59ba330ef8
Remove unused items (#128)
* Remove unused items

These items are called out as inactive or removed from pylint.

* Allow inspection of additional packages

By adding these package inspections, the pylint warnings are reduced.  This brings us to a smaller list of items which do not comply with current PEPs.  https://hackedyour.info/58KO86fiiL4wiV5r

* Lint problems discussed with lead

* Add comma to end of line
2023-04-13 22:56:37 +03:00

71 lines
1.4 KiB
INI

[MASTER]
ignore = .git
extension-pkg-whitelist =
setproctitle,
gpiod,
spidev,
netifaces,
ustreamer,
hid,
[DESIGN]
min-public-methods = 0
max-args = 10
[TYPECHECK]
ignored-classes=
AioQueue,
[MESSAGES CONTROL]
disable =
file-ignored,
locally-disabled,
fixme,
missing-docstring,
superfluous-parens,
duplicate-code,
broad-except,
redundant-keyword-arg,
wrong-import-order,
too-many-ancestors,
no-else-return,
len-as-condition,
raise-missing-from,
consider-using-in,
unsubscriptable-object,
unused-private-member,
unspecified-encoding,
# https://github.com/PyCQA/pylint/issues/3882
[CLASSES]
exclude-protected =
_unpack,
[REPORTS]
msg-template = {symbol} -- {path}:{line}({obj}): {msg}
[FORMAT]
max-line-length = 160
[BASIC]
# Good variable names which should always be accepted, separated by a comma
good-names = _, __, x, y, ws
# Regular expression matching correct method names
method-rgx = [a-z_][a-z0-9_]{2,50}$
# Regular expression matching correct function names
function-rgx = [a-z_][a-z0-9_]{2,50}$
# Regular expression which should only match correct module level names
const-rgx = ([a-zA-Z_][a-zA-Z0-9_]*)$
# Regular expression which should only match correct argument names
argument-rgx = [a-z_][a-z0-9_]{1,30}$
# Regular expression which should only match correct variable names
variable-rgx = [a-z_][a-z0-9_]{1,30}$
# Regular expression which should only match correct instance attribute names
attr-rgx = [a-z_][a-z0-9_]{1,30}$