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