mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-27 18:57:17 +00:00
ruff: use readable rule names in selectors
This commit is contained in:
+12
-10
@@ -63,21 +63,23 @@ select = [
|
|||||||
#
|
#
|
||||||
"FA", # future annotations
|
"FA", # future annotations
|
||||||
"UP", # pyupgrade
|
"UP", # pyupgrade
|
||||||
"RUF015", # next() > list_comprehension[0]
|
"unnecessary-iterable-allocation-for-first-element",
|
||||||
"RUF022", # sort __all__
|
"unsorted-dunder-all",
|
||||||
"I", # import sorting
|
"I", # import sorting
|
||||||
"unused-noqa",
|
"unused-noqa",
|
||||||
|
"rule-codes-in-selectors",
|
||||||
]
|
]
|
||||||
ignore = [
|
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:
|
# Maybe will enable later:
|
||||||
"UP007", # Union[X,Y] to X | Y
|
"non-pep604-annotation-union", # Union[X,Y] to X | Y
|
||||||
"UP045", # Optional to X | None
|
"non-pep604-annotation-optional", # Optional to X | None
|
||||||
"UP015", # Unnecessary mode argument
|
"redundant-open-modes", # Unnecessary mode argument
|
||||||
"UP028", # yield for -> yield from
|
"yield-in-for-loop", # yield for -> yield from
|
||||||
"UP030", # implicit references for positional format fields
|
"format-literals", # implicit references for positional format fields
|
||||||
"UP031", # Replace % with .format
|
"printf-string-formatting", # Replace % with .format
|
||||||
"UP032", # Replace .format with f-string
|
"f-string", # Replace .format with f-string
|
||||||
]
|
]
|
||||||
|
|
||||||
[tool.ty.rules]
|
[tool.ty.rules]
|
||||||
|
|||||||
@@ -66,5 +66,5 @@ commands = pytest --cov --cov-report=term tests
|
|||||||
[tool.ruff]
|
[tool.ruff]
|
||||||
extend = "../../pyproject.toml"
|
extend = "../../pyproject.toml"
|
||||||
lint.extend-select = [
|
lint.extend-select = [
|
||||||
"F401", # unused imports
|
"unused-import", # unused imports
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ exclude = ["test*"]
|
|||||||
[tool.ruff]
|
[tool.ruff]
|
||||||
extend = "../../pyproject.toml"
|
extend = "../../pyproject.toml"
|
||||||
lint.extend-select = [
|
lint.extend-select = [
|
||||||
"F401", # unused imports
|
"unused-import", # unused imports
|
||||||
]
|
]
|
||||||
|
|
||||||
[tool.ruff.lint.isort]
|
[tool.ruff.lint.isort]
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
[tool.ruff]
|
[tool.ruff]
|
||||||
extend = "../pyproject.toml"
|
extend = "../pyproject.toml"
|
||||||
lint.ignore = [
|
lint.ignore = [
|
||||||
"F401", # unused imports
|
"unused-import", # unused imports
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -47,5 +47,5 @@ py-modules = ["bsdd","bsdd_json","type_hints"]
|
|||||||
[tool.ruff]
|
[tool.ruff]
|
||||||
extend = "../../pyproject.toml"
|
extend = "../../pyproject.toml"
|
||||||
lint.extend-select = [
|
lint.extend-select = [
|
||||||
"F401", # unused imports
|
"unused-import", # unused imports
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -32,5 +32,5 @@ exclude = ["test*"]
|
|||||||
[tool.ruff]
|
[tool.ruff]
|
||||||
extend = "../../pyproject.toml"
|
extend = "../../pyproject.toml"
|
||||||
lint.extend-select = [
|
lint.extend-select = [
|
||||||
"F401", # unused imports
|
"unused-import", # unused imports
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -44,5 +44,5 @@ exclude = ["test*"]
|
|||||||
[tool.ruff]
|
[tool.ruff]
|
||||||
extend = "../../pyproject.toml"
|
extend = "../../pyproject.toml"
|
||||||
lint.extend-select = [
|
lint.extend-select = [
|
||||||
"F401", # unused imports
|
"unused-import", # unused imports
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -30,5 +30,5 @@ py-modules = ["ifccsv"]
|
|||||||
[tool.ruff]
|
[tool.ruff]
|
||||||
extend = "../../pyproject.toml"
|
extend = "../../pyproject.toml"
|
||||||
lint.extend-select = [
|
lint.extend-select = [
|
||||||
"F401", # unused imports
|
"unused-import", # unused imports
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -49,5 +49,5 @@ include = ["ifcopenshell*"]
|
|||||||
[tool.ruff]
|
[tool.ruff]
|
||||||
extend = "../../pyproject.toml"
|
extend = "../../pyproject.toml"
|
||||||
lint.extend-select = [
|
lint.extend-select = [
|
||||||
"F401", # unused imports
|
"unused-import", # unused imports
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -37,5 +37,5 @@ extend = "../../pyproject.toml"
|
|||||||
|
|
||||||
[tool.ruff.lint]
|
[tool.ruff.lint]
|
||||||
extend-select = [
|
extend-select = [
|
||||||
"F401", # unused imports
|
"unused-import", # unused imports
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
[tool.ruff]
|
[tool.ruff]
|
||||||
extend = "../../pyproject.toml"
|
extend = "../../pyproject.toml"
|
||||||
lint.extend-select = [
|
lint.extend-select = [
|
||||||
"F401", # unused imports
|
"unused-import", # unused imports
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -46,5 +46,5 @@ exclude = ["test*"]
|
|||||||
[tool.ruff]
|
[tool.ruff]
|
||||||
extend = "../../pyproject.toml"
|
extend = "../../pyproject.toml"
|
||||||
lint.extend-select = [
|
lint.extend-select = [
|
||||||
"F401", # unused imports
|
"unused-import", # unused imports
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user