ruff: use readable rule names in selectors

This commit is contained in:
Andrej730
2026-08-10 16:09:49 +05:00
parent daa7d98b3f
commit b6dccce12a
12 changed files with 23 additions and 21 deletions
+12 -10
View File
@@ -63,21 +63,23 @@ select = [
#
"FA", # future annotations
"UP", # pyupgrade
"RUF015", # next() > list_comprehension[0]
"RUF022", # sort __all__
"unnecessary-iterable-allocation-for-first-element",
"unsorted-dunder-all",
"I", # import sorting
"unused-noqa",
"rule-codes-in-selectors",
]
ignore = [
"FA100", # Conflicts with Blender using annotations for props definitions.
# Conflicts with Blender using annotations for props definitions.
"future-rewritable-type-annotation",
# Maybe will enable later:
"UP007", # Union[X,Y] to X | Y
"UP045", # Optional to X | None
"UP015", # Unnecessary mode argument
"UP028", # yield for -> yield from
"UP030", # implicit references for positional format fields
"UP031", # Replace % with .format
"UP032", # Replace .format with f-string
"non-pep604-annotation-union", # Union[X,Y] to X | Y
"non-pep604-annotation-optional", # Optional to X | None
"redundant-open-modes", # Unnecessary mode argument
"yield-in-for-loop", # yield for -> yield from
"format-literals", # implicit references for positional format fields
"printf-string-formatting", # Replace % with .format
"f-string", # Replace .format with f-string
]
[tool.ty.rules]
+1 -1
View File
@@ -66,5 +66,5 @@ commands = pytest --cov --cov-report=term tests
[tool.ruff]
extend = "../../pyproject.toml"
lint.extend-select = [
"F401", # unused imports
"unused-import", # unused imports
]
+1 -1
View File
@@ -33,7 +33,7 @@ exclude = ["test*"]
[tool.ruff]
extend = "../../pyproject.toml"
lint.extend-select = [
"F401", # unused imports
"unused-import", # unused imports
]
[tool.ruff.lint.isort]
+1 -1
View File
@@ -1,5 +1,5 @@
[tool.ruff]
extend = "../pyproject.toml"
lint.ignore = [
"F401", # unused imports
"unused-import", # unused imports
]
+1 -1
View File
@@ -47,5 +47,5 @@ py-modules = ["bsdd","bsdd_json","type_hints"]
[tool.ruff]
extend = "../../pyproject.toml"
lint.extend-select = [
"F401", # unused imports
"unused-import", # unused imports
]
+1 -1
View File
@@ -32,5 +32,5 @@ exclude = ["test*"]
[tool.ruff]
extend = "../../pyproject.toml"
lint.extend-select = [
"F401", # unused imports
"unused-import", # unused imports
]
+1 -1
View File
@@ -44,5 +44,5 @@ exclude = ["test*"]
[tool.ruff]
extend = "../../pyproject.toml"
lint.extend-select = [
"F401", # unused imports
"unused-import", # unused imports
]
+1 -1
View File
@@ -30,5 +30,5 @@ py-modules = ["ifccsv"]
[tool.ruff]
extend = "../../pyproject.toml"
lint.extend-select = [
"F401", # unused imports
"unused-import", # unused imports
]
+1 -1
View File
@@ -49,5 +49,5 @@ include = ["ifcopenshell*"]
[tool.ruff]
extend = "../../pyproject.toml"
lint.extend-select = [
"F401", # unused imports
"unused-import", # unused imports
]
+1 -1
View File
@@ -37,5 +37,5 @@ extend = "../../pyproject.toml"
[tool.ruff.lint]
extend-select = [
"F401", # unused imports
"unused-import", # unused imports
]
+1 -1
View File
@@ -1,5 +1,5 @@
[tool.ruff]
extend = "../../pyproject.toml"
lint.extend-select = [
"F401", # unused imports
"unused-import", # unused imports
]
+1 -1
View File
@@ -46,5 +46,5 @@ exclude = ["test*"]
[tool.ruff]
extend = "../../pyproject.toml"
lint.extend-select = [
"F401", # unused imports
"unused-import", # unused imports
]