Skip to content

Commit 9e53822

Browse files
Merge pull request #2752 from VWS-Python/ty
Add ty to pre-commit
2 parents df9311d + 394cc01 commit 9e53822

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

.pre-commit-config.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ ci:
2525
- pyright
2626
- pyright-docs
2727
- pyright-verifytypes
28+
- ty
29+
- ty-docs
2830
- pyroma
2931
- ruff-check-fix
3032
- ruff-check-fix-docs
@@ -341,6 +343,24 @@ repos:
341343
types_or: [python]
342344
additional_dependencies: [uv==0.9.5]
343345

346+
- id: ty
347+
name: ty
348+
stages: [pre-push]
349+
entry: uv run --extra=dev ty check
350+
language: python
351+
types_or: [python, toml]
352+
pass_filenames: false
353+
additional_dependencies: [uv==0.9.5]
354+
355+
- id: ty-docs
356+
name: ty-docs
357+
stages: [pre-push]
358+
entry: uv run --extra=dev doccmd --no-write-to-file --example-workers 0 --language=python
359+
--command="ty check"
360+
language: python
361+
types_or: [markdown, rst]
362+
additional_dependencies: [uv==0.9.5]
363+
344364
- id: yamlfix
345365
name: yamlfix
346366
entry: uv run --extra=dev yamlfix

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ optional-dependencies.dev = [
7272
"sphinx-substitution-extensions==2025.11.17",
7373
"sphinxcontrib-spelling==8.0.2",
7474
"sybil==9.3.0",
75+
"ty==0.0.1a34",
7576
"types-requests==2.32.4.20250913",
7677
"vulture==2.14",
7778
"vws-python-mock==2025.3.10.1",

0 commit comments

Comments
 (0)