Skip to content

Commit e250f1b

Browse files
authored
👷 Add ty to precommit (#335)
1 parent 950e639 commit e250f1b

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 tests
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
@@ -71,6 +71,7 @@ tests = [
7171
"pytest>=7.4.0,<10.0.0",
7272
"ruff==0.15.6",
7373
"uvicorn>=0.39.0",
74+
"ty>=0.0.9",
7475
]
7576

7677
[build-system]

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 tests
7+
ty check src tests
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)