pyproject.toml - add ty command to check for deprecated methods

This commit is contained in:
Andrej730
2026-03-17 13:09:58 +05:00
parent ba36dc82ff
commit b8d3d1d105
+13
View File
@@ -78,6 +78,17 @@ ignore = [
"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]
ruff-main = "ruff check --extend-exclude nix/build-all.py"
@@ -87,6 +98,8 @@ ruff.sequence = ["ruff-main", "ruff-old"]
black = "black ."
ty = "ty check"
format.sequence = ["black", "ruff-main", "ruff-old"]
cmake-format = "gersemi . --in-place"