mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 09:10:30 +08:00
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
This commit is contained in:
parent
db208ad456
commit
59ba330ef8
@ -2,6 +2,11 @@
|
|||||||
ignore = .git
|
ignore = .git
|
||||||
extension-pkg-whitelist =
|
extension-pkg-whitelist =
|
||||||
setproctitle,
|
setproctitle,
|
||||||
|
gpiod,
|
||||||
|
spidev,
|
||||||
|
netifaces,
|
||||||
|
ustreamer,
|
||||||
|
hid,
|
||||||
|
|
||||||
[DESIGN]
|
[DESIGN]
|
||||||
min-public-methods = 0
|
min-public-methods = 0
|
||||||
@ -17,15 +22,8 @@ disable =
|
|||||||
locally-disabled,
|
locally-disabled,
|
||||||
fixme,
|
fixme,
|
||||||
missing-docstring,
|
missing-docstring,
|
||||||
no-init,
|
|
||||||
no-self-use,
|
|
||||||
superfluous-parens,
|
superfluous-parens,
|
||||||
abstract-class-not-used,
|
|
||||||
abstract-class-little-used,
|
|
||||||
duplicate-code,
|
duplicate-code,
|
||||||
bad-continuation,
|
|
||||||
bad-whitespace,
|
|
||||||
star-args,
|
|
||||||
broad-except,
|
broad-except,
|
||||||
redundant-keyword-arg,
|
redundant-keyword-arg,
|
||||||
wrong-import-order,
|
wrong-import-order,
|
||||||
@ -50,9 +48,6 @@ msg-template = {symbol} -- {path}:{line}({obj}): {msg}
|
|||||||
max-line-length = 160
|
max-line-length = 160
|
||||||
|
|
||||||
[BASIC]
|
[BASIC]
|
||||||
# List of builtins function names that should not be used, separated by a comma
|
|
||||||
bad-functions =
|
|
||||||
|
|
||||||
# Good variable names which should always be accepted, separated by a comma
|
# Good variable names which should always be accepted, separated by a comma
|
||||||
good-names = _, __, x, y, ws
|
good-names = _, __, x, y, ws
|
||||||
|
|
||||||
|
|||||||
@ -17,9 +17,8 @@ deps =
|
|||||||
|
|
||||||
[testenv:pylint]
|
[testenv:pylint]
|
||||||
whitelist_externals = bash
|
whitelist_externals = bash
|
||||||
commands = bash -c 'pylint -j2 --rcfile=testenv/linters/pylint.ini --output-format=colorized --reports=no kvmd testenv/tests *.py'
|
commands = bash -c 'pylint -j0 --rcfile=testenv/linters/pylint.ini --output-format=colorized --reports=no kvmd testenv/tests *.py'
|
||||||
deps =
|
deps =
|
||||||
astroid==2.7.3
|
|
||||||
pylint
|
pylint
|
||||||
pytest
|
pytest
|
||||||
pytest-asyncio
|
pytest-asyncio
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user