mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 12:23:44 +00:00
pyproject.toml - add ty command to check for deprecated methods
This commit is contained in:
@@ -78,6 +78,17 @@ ignore = [
|
|||||||
"UP032", # Replace .format with f-string
|
"UP032", # Replace .format with f-string
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[tool.ty.rules]
|
||||||
|
# We only use `ty` currently to check for deprecated methods.
|
||||||
|
all = "ignore"
|
||||||
|
deprecated = "error"
|
||||||
|
|
||||||
|
[tool.ty.src]
|
||||||
|
exclude = [
|
||||||
|
"src/ifc2ca/templates",
|
||||||
|
"src/svgfill/3rdparty",
|
||||||
|
]
|
||||||
|
|
||||||
[tool.poe.tasks]
|
[tool.poe.tasks]
|
||||||
|
|
||||||
ruff-main = "ruff check --extend-exclude nix/build-all.py"
|
ruff-main = "ruff check --extend-exclude nix/build-all.py"
|
||||||
@@ -87,6 +98,8 @@ ruff.sequence = ["ruff-main", "ruff-old"]
|
|||||||
|
|
||||||
black = "black ."
|
black = "black ."
|
||||||
|
|
||||||
|
ty = "ty check"
|
||||||
|
|
||||||
format.sequence = ["black", "ruff-main", "ruff-old"]
|
format.sequence = ["black", "ruff-main", "ruff-old"]
|
||||||
|
|
||||||
cmake-format = "gersemi . --in-place"
|
cmake-format = "gersemi . --in-place"
|
||||||
|
|||||||
Reference in New Issue
Block a user