1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-02 03:12:20 +01:00

[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
2 changed files with 42 additions and 30 deletions

View File

@@ -63,3 +63,45 @@ addopts = [
"--cov=esphome",
"--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"