diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b1f42363a..610fffad8 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -22,6 +22,8 @@ ci: - pyright - pyright-docs - pyright-verifytypes + - ty + - ty-docs - pyroma - ruff-check-fix - ruff-check-fix-docs @@ -208,6 +210,24 @@ repos: types_or: [python] additional_dependencies: [uv==0.9.5] + - id: ty + name: ty + stages: [pre-push] + entry: uv run --extra=dev ty check + language: python + types_or: [python, toml] + pass_filenames: false + additional_dependencies: [uv==0.9.5] + + - id: ty-docs + name: ty-docs + stages: [pre-push] + entry: uv run --extra=dev doccmd --no-write-to-file --example-workers 0 --language=python + --command="ty check" + language: python + types_or: [markdown, rst] + additional_dependencies: [uv==0.9.5] + - id: vulture name: vulture entry: uv run --extra=dev -m vulture . diff --git a/pyproject.toml b/pyproject.toml index 57274f2fe..443898598 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -95,6 +95,7 @@ optional-dependencies.dev = [ "sphinxcontrib-spelling==8.0.2", "sybil==9.3.0", "tenacity==9.1.2", + "ty==0.0.1a34", "types-docker==7.1.0.20251202", "types-pyyaml==6.0.12.20250915", "types-requests==2.32.4.20250913",