mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-08-30 22:49:30 +02:00
updated flake8 to be more strict
This commit is contained in:
parent
0c245b5a46
commit
d8b9294483
1 changed files with 20 additions and 3 deletions
23
setup.cfg
23
setup.cfg
|
@ -1,7 +1,10 @@
|
||||||
[flake8]
|
[flake8]
|
||||||
ignore = W191,W293,E265,E266,E117,E402
|
ignore = E117, # over-indented
|
||||||
|
W191, # indentation contains tabs
|
||||||
|
W293, # blank line contains whitespace
|
||||||
|
|
||||||
max-line-length = 220
|
max-line-length = 220
|
||||||
max-complexity = 30
|
max-complexity = 20
|
||||||
exclude =
|
exclude =
|
||||||
./.git,
|
./.git,
|
||||||
./tests,
|
./tests,
|
||||||
|
@ -10,4 +13,18 @@ exclude =
|
||||||
./docs
|
./docs
|
||||||
|
|
||||||
[pylint]
|
[pylint]
|
||||||
disable = duplicate-code, invalid-name, mixed-indentation, missing-module-docstring, missing-class-docstring, missing-function-docstring, wrong-import-position, too-many-public-methods, too-many-return-statements, trailing-whitespace, bare-except, useless-return, bad-continuation, import-outside-toplevel, import-error
|
disable = duplicate-code,
|
||||||
|
invalid-name,
|
||||||
|
mixed-indentation,
|
||||||
|
missing-module-docstring,
|
||||||
|
missing-class-docstring,
|
||||||
|
missing-function-docstring,
|
||||||
|
wrong-import-position,
|
||||||
|
too-many-public-methods,
|
||||||
|
too-many-return-statements,
|
||||||
|
trailing-whitespace,
|
||||||
|
bare-except,
|
||||||
|
useless-return,
|
||||||
|
bad-continuation,
|
||||||
|
import-outside-toplevel,
|
||||||
|
import-error
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue