2021-06-30 17:03:55 +02:00
|
|
|
[tool.black]
|
|
|
|
exclude = 'api_pb2.py|api_options_pb2.py'
|
2023-09-24 23:27:17 +02:00
|
|
|
target-version = ['py39']
|
2021-06-30 17:03:55 +02:00
|
|
|
|
|
|
|
[tool.pylint.MASTER]
|
|
|
|
reports = 'no'
|
|
|
|
ignore = [
|
|
|
|
"api_pb2.py",
|
|
|
|
"api_options_pb2.py"
|
|
|
|
]
|
|
|
|
disable = [
|
|
|
|
"missing-docstring",
|
|
|
|
"too-few-public-methods",
|
|
|
|
"too-many-instance-attributes",
|
|
|
|
"wildcard-import",
|
|
|
|
"invalid-name",
|
|
|
|
"too-many-arguments",
|
|
|
|
"line-too-long",
|
|
|
|
"protected-access",
|
|
|
|
"unused-wildcard-import",
|
|
|
|
"import-outside-toplevel",
|
|
|
|
"raise-missing-from",
|
|
|
|
"bad-mcs-classmethod-argument",
|
|
|
|
"duplicate-code",
|
2023-04-03 06:53:43 +02:00
|
|
|
"too-many-lines",
|
2024-10-14 00:12:28 +02:00
|
|
|
"too-many-positional-arguments"
|
2021-06-30 17:03:55 +02:00
|
|
|
]
|
2023-10-12 20:12:39 +02:00
|
|
|
|
2023-11-26 15:09:52 +01:00
|
|
|
[tool.ruff]
|
2024-08-05 03:42:21 +02:00
|
|
|
required-version = ">=0.5.0"
|
|
|
|
exclude = [
|
|
|
|
"aioesphomeapi/api_pb2.py",
|
|
|
|
"aioesphomeapi/api_options_pb2.py",
|
|
|
|
]
|
|
|
|
|
|
|
|
[tool.ruff.lint]
|
|
|
|
select = [
|
|
|
|
"E", # pycodestyle
|
|
|
|
"F", # pyflakes/autoflake
|
|
|
|
"I", # isort
|
|
|
|
"PL", # pylint
|
|
|
|
"UP", # pyupgrade
|
|
|
|
]
|
|
|
|
|
2023-11-26 15:09:52 +01:00
|
|
|
ignore = [
|
2024-08-05 03:42:21 +02:00
|
|
|
"E501", # line too long
|
2023-11-26 15:09:52 +01:00
|
|
|
"E721", # We want type() check for protobuf messages
|
2024-08-05 03:42:21 +02:00
|
|
|
"PLR0911", # Too many return statements ({returns} > {max_returns})
|
|
|
|
"PLR0912", # Too many branches ({branches} > {max_branches})
|
|
|
|
"PLR0913", # Too many arguments to function call ({c_args} > {max_args})
|
|
|
|
"PLR0915", # Too many statements ({statements} > {max_statements})
|
|
|
|
"PLR2004", # Magic value used in comparison, consider replacing {value} with a constant variable
|
|
|
|
"PLW2901", # Outer {outer_kind} variable {name} overwritten by inner {inner_kind} target
|
|
|
|
]
|
|
|
|
|
|
|
|
[tool.ruff.lint.isort]
|
|
|
|
force-sort-within-sections = true
|
|
|
|
known-first-party = [
|
|
|
|
"aioesphomeapi",
|
2023-11-26 15:09:52 +01:00
|
|
|
]
|
2024-08-05 03:42:21 +02:00
|
|
|
combine-as-imports = true
|
|
|
|
split-on-trailing-comma = false
|
2023-11-26 15:09:52 +01:00
|
|
|
|
2023-10-12 20:12:39 +02:00
|
|
|
[build-system]
|
|
|
|
requires = ['setuptools>=65.4.1', 'wheel', 'Cython>=3.0.2']
|