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:
@@ -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"
|
||||
|
Reference in New Issue
Block a user