Skip to content

Commit 4ff5f79

Browse files
Merge pull request #2796 from VWS-Python/ty
Add ty to pre-commit
2 parents cf539f5 + c262432 commit 4ff5f79

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
@@ -22,6 +22,8 @@ ci:
2222
- pyright
2323
- pyright-docs
2424
- pyright-verifytypes
25+
- ty
26+
- ty-docs
2527
- pyroma
2628
- ruff-check-fix
2729
- ruff-check-fix-docs
@@ -208,6 +210,24 @@ repos:
208210
types_or: [python]
209211
additional_dependencies: [uv==0.9.5]
210212

213+
- id: ty
214+
name: ty
215+
stages: [pre-push]
216+
entry: uv run --extra=dev ty check
217+
language: python
218+
types_or: [python, toml]
219+
pass_filenames: false
220+
additional_dependencies: [uv==0.9.5]
221+
222+
- id: ty-docs
223+
name: ty-docs
224+
stages: [pre-push]
225+
entry: uv run --extra=dev doccmd --no-write-to-file --example-workers 0 --language=python
226+
--command="ty check"
227+
language: python
228+
types_or: [markdown, rst]
229+
additional_dependencies: [uv==0.9.5]
230+
211231
- id: vulture
212232
name: vulture
213233
entry: uv run --extra=dev -m vulture .

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ optional-dependencies.dev = [
9595
"sphinxcontrib-spelling==8.0.2",
9696
"sybil==9.3.0",
9797
"tenacity==9.1.2",
98+
"ty==0.0.1a34",
9899
"types-docker==7.1.0.20251202",
99100
"types-pyyaml==6.0.12.20250915",
100101
"types-requests==2.32.4.20250913",

0 commit comments

Comments
 (0)