core/tests/ruff.toml

28 lines
591 B
TOML
Raw Normal View History

2023-01-27 10:10:29 +00:00
# This extend our general Ruff rules specifically for tests
extend = "../pyproject.toml"
[lint]
2023-06-08 21:43:56 +00:00
extend-ignore = [
"B904", # Use raise from to specify exception cause
"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
"SLF001", # Private member accessed: Tests do often test internals a lot
]
[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",
]