Skip to content

Commit 2043b9f

Browse files
committed
add ty to precommit
1 parent 056efa4 commit 2043b9f

File tree

4 files changed

+37
-0
lines changed

4 files changed

+37
-0
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,10 @@ repos:
3333
require_serial: true
3434
language: unsupported
3535
pass_filenames: false
36+
37+
- id: local-ty
38+
name: ty check
39+
entry: uv run ty check src
40+
require_serial: true
41+
language: unsupported
42+
pass_filenames: false

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ tests = [
5151
"pytest>=8.3.5",
5252
"ruff==0.15.4",
5353
"smokeshow>=0.5.0",
54+
"ty>=0.0.9",
5455
"typing-extensions>=4.13.2 ; python_full_version < '3.9'",
5556
]
5657

scripts/lint.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ set -e
44
set -x
55

66
mypy src
7+
ty check src
78
ruff check src tests scripts
89
ruff format src tests --check

uv.lock

Lines changed: 28 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)