# This extend our general Ruff rules specifically for tests extend = "../pyproject.toml" [lint] extend-ignore = [ "B904", # Use raise from to specify exception cause "N815", # Variable {name} in class scope should not be mixedCase "RUF018", # Avoid assignment expressions in assert statements "SLF001", # Private member accessed: Tests do often test internals a lot ] [lint.flake8-tidy-imports.banned-api] "async_timeout".msg = "use asyncio.timeout instead" "pytz".msg = "use zoneinfo instead" [lint.isort] known-first-party = [ "homeassistant", "tests", "script", ] known-third-party = [ "syrupy", "pytest", "voluptuous", "pylint", ] forced-separate = [ "tests", ]