From b8d3d1d1051b1ab1452fafcfee4d9f60c375d810 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Tue, 17 Mar 2026 13:09:58 +0500 Subject: [PATCH] pyproject.toml - add `ty` command to check for deprecated methods --- pyproject.toml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 7234815c08..895e74679e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"