[core] Move pylint config into pyproject.toml (#6739)

This commit is contained in:
Jesse Hills 2024-05-16 13:47:36 +12:00 committed by GitHub
parent bf48ccaf22
commit a27c05483c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 42 additions and 30 deletions

View file

@ -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,

View file

@ -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"