hass-core/tests/ruff.toml
Sid d5f883fbf0
Unignore Ruff PLR in tests (#114470)
* Unignore Ruff PLR in tests

* Address review comments

* review comments

* fix import

* Update test_api.py

* Update test_api.py

* Update test_api.py
2024-04-01 11:11:59 +02:00

26 lines
468 B
TOML

# This extend our general Ruff rules specifically for tests
extend = "../pyproject.toml"
[lint]
extend-ignore = [
"PLC", # 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",
]