hass-core/tests/ruff.toml
Sid aec7a67a58
Unignore Ruff PLE, PLW in tests (#114406)
* Unignore Ruff PLE, PLW in tests

* fix tests
2024-03-29 23:58:30 +01:00

27 lines
488 B
TOML

# This extend our general Ruff rules specifically for tests
extend = "../pyproject.toml"
[lint]
extend-ignore = [
"PLC", # pylint
"PLR", # pylint
"B904", # Use raise from to specify exception cause
"N815", # Variable {name} in class scope should not be mixedCase
]
[lint.isort]
known-first-party = [
"homeassistant",
"tests",
"script",
]
known-third-party = [
"syrupy",
"pytest",
"voluptuous",
"pylint",
]
forced-separate = [
"tests",
]