diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fb99a708..869dd167 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -25,6 +25,8 @@ ci: - pyright - pyright-docs - pyright-verifytypes + - ty + - ty-docs - pyroma - ruff-check-fix - ruff-check-fix-docs @@ -341,6 +343,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: yamlfix name: yamlfix entry: uv run --extra=dev yamlfix diff --git a/pyproject.toml b/pyproject.toml index 63c580c1..c55ab29c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -72,6 +72,7 @@ optional-dependencies.dev = [ "sphinx-substitution-extensions==2025.11.17", "sphinxcontrib-spelling==8.0.2", "sybil==9.3.0", + "ty==0.0.1a34", "types-requests==2.32.4.20250913", "vulture==2.14", "vws-python-mock==2025.3.10.1",