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:
@@ -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",
|
||||
]
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user