mirror of
https://github.com/esphome/esphome.git
synced 2024-11-21 22:48:10 +01:00
[core] Move pylint config into pyproject.toml (#6739)
This commit is contained in:
parent
bf48ccaf22
commit
a27c05483c
2 changed files with 42 additions and 30 deletions
30
pylintrc
30
pylintrc
|
@ -1,30 +0,0 @@
|
||||||
[MASTER]
|
|
||||||
reports=no
|
|
||||||
ignore=api_pb2.py
|
|
||||||
|
|
||||||
disable=
|
|
||||||
format,
|
|
||||||
missing-docstring,
|
|
||||||
fixme,
|
|
||||||
unused-argument,
|
|
||||||
global-statement,
|
|
||||||
too-few-public-methods,
|
|
||||||
too-many-lines,
|
|
||||||
too-many-locals,
|
|
||||||
too-many-ancestors,
|
|
||||||
too-many-branches,
|
|
||||||
too-many-statements,
|
|
||||||
too-many-arguments,
|
|
||||||
too-many-return-statements,
|
|
||||||
too-many-instance-attributes,
|
|
||||||
duplicate-code,
|
|
||||||
invalid-name,
|
|
||||||
cyclic-import,
|
|
||||||
redefined-builtin,
|
|
||||||
undefined-loop-variable,
|
|
||||||
useless-object-inheritance,
|
|
||||||
stop-iteration-return,
|
|
||||||
import-outside-toplevel,
|
|
||||||
# Broken
|
|
||||||
unsupported-membership-test,
|
|
||||||
unsubscriptable-object,
|
|
|
@ -63,3 +63,45 @@ addopts = [
|
||||||
"--cov=esphome",
|
"--cov=esphome",
|
||||||
"--cov-branch",
|
"--cov-branch",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[tool.pylint.MAIN]
|
||||||
|
py-version = "3.9"
|
||||||
|
ignore = [
|
||||||
|
"api_pb2.py",
|
||||||
|
]
|
||||||
|
persistent = false
|
||||||
|
|
||||||
|
[tool.pylint.REPORTS]
|
||||||
|
score = false
|
||||||
|
|
||||||
|
[tool.pylint."MESSAGES CONTROL"]
|
||||||
|
disable = [
|
||||||
|
"format",
|
||||||
|
"missing-docstring",
|
||||||
|
"fixme",
|
||||||
|
"unused-argument",
|
||||||
|
"global-statement",
|
||||||
|
"too-few-public-methods",
|
||||||
|
"too-many-lines",
|
||||||
|
"too-many-locals",
|
||||||
|
"too-many-ancestors",
|
||||||
|
"too-many-branches",
|
||||||
|
"too-many-statements",
|
||||||
|
"too-many-arguments",
|
||||||
|
"too-many-return-statements",
|
||||||
|
"too-many-instance-attributes",
|
||||||
|
"duplicate-code",
|
||||||
|
"invalid-name",
|
||||||
|
"cyclic-import",
|
||||||
|
"redefined-builtin",
|
||||||
|
"undefined-loop-variable",
|
||||||
|
"useless-object-inheritance",
|
||||||
|
"stop-iteration-return",
|
||||||
|
"import-outside-toplevel",
|
||||||
|
# Broken
|
||||||
|
"unsupported-membership-test",
|
||||||
|
"unsubscriptable-object",
|
||||||
|
]
|
||||||
|
|
||||||
|
[tool.pylint.FORMAT]
|
||||||
|
expected-line-ending-format = "LF"
|
||||||
|
|
Loading…
Reference in a new issue