mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 02:02:22 +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
|
||||
]
|
||||
|
||||
[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"
|
||||
|
||||
Reference in New Issue
Block a user