diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9b73d5b..780b9a1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -32,6 +32,8 @@ ci: - shfmt-docs - spelling - sphinx-lint + - ty + - ty-docs - vulture - vulture-docs - yamlfix @@ -194,6 +196,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 7648c8f..53aa56b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,7 +32,7 @@ dynamic = [ "version", ] dependencies = [ - "beartype>=0.19.0", + "beartype>=0.22.9", "click>=8.1.7", "pyyaml>=6.0.2", "selenium>=4.25.0", @@ -69,6 +69,7 @@ optional-dependencies.dev = [ "sphinx-pyproject==0.3.0", "sphinx-substitution-extensions==2025.11.17", "sphinxcontrib-spelling==8.0.2", + "ty==0.0.1a34", "types-pyyaml==6.0.12.20250915", "vulture==2.14", "yamlfix==1.19.0",