2023-01-27 10:10:29 +00:00
|
|
|
# This extend our general Ruff rules specifically for tests
|
|
|
|
extend = "../pyproject.toml"
|
|
|
|
|
2024-02-06 14:41:34 +00:00
|
|
|
[lint]
|
2023-06-08 21:43:56 +00:00
|
|
|
|
2023-06-27 15:42:46 +00:00
|
|
|
extend-ignore = [
|
2024-02-06 14:41:34 +00:00
|
|
|
"B904", # Use raise from to specify exception cause
|
2023-06-27 15:42:46 +00:00
|
|
|
"N815", # Variable {name} in class scope should not be mixedCase
|
2024-04-13 07:56:33 +00:00
|
|
|
"RUF018", # Avoid assignment expressions in assert statements
|
2024-05-06 18:33:26 +00:00
|
|
|
"SLF001", # Private member accessed: Tests do often test internals a lot
|
2023-06-27 15:42:46 +00:00
|
|
|
]
|
|
|
|
|
2024-02-06 14:41:34 +00:00
|
|
|
[lint.isort]
|
2023-06-08 21:43:56 +00:00
|
|
|
known-first-party = [
|
|
|
|
"homeassistant",
|
|
|
|
"tests",
|
|
|
|
"script",
|
|
|
|
]
|
|
|
|
known-third-party = [
|
|
|
|
"syrupy",
|
|
|
|
"pytest",
|
|
|
|
"voluptuous",
|
|
|
|
"pylint",
|
|
|
|
]
|
|
|
|
forced-separate = [
|
|
|
|
"tests",
|
2024-02-06 14:41:34 +00:00
|
|
|
]
|