Update ruff to 0.2.1 (#109796)

* Update ruff to 0.2.1

* Rename config sections

* Update remapped error codes

* Add ignores
This commit is contained in:
Marc Mueller
2024-02-06 15:41:34 +01:00
committed by GitHub
parent a533fa222e
commit 545b888034
8 changed files with 23 additions and 21 deletions

View File

@@ -1,6 +1,7 @@
# This extend our general Ruff rules specifically for tests
extend = "../pyproject.toml"
[lint]
extend-select = [
"PT001", # Use @pytest.fixture without parentheses
"PT002", # Configuration for fixture specified via positional args, use kwargs
@@ -17,10 +18,11 @@ extend-ignore = [
"PLE", # pylint
"PLR", # pylint
"PLW", # pylint
"B904", # Use raise from to specify exception cause
"N815", # Variable {name} in class scope should not be mixedCase
]
[isort]
[lint.isort]
known-first-party = [
"homeassistant",
"tests",
@@ -34,4 +36,4 @@ known-third-party = [
]
forced-separate = [
"tests",
]
]