Files
homeassistant-core/tests/ruff.toml
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
591 B
TOML
Raw Normal View History

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
extend-ignore = [
2024-02-06 15:41:34 +01:00
"B904", # Use raise from to specify exception cause
"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
"SLF001", # Private member accessed: Tests do often test internals a lot
]
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
]