Skip to content

Commit c2f6649

Browse files
authored
πŸ‘· Add ty to precommit (#51)
1 parent 8d2af0c commit c2f6649

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
@@ -48,6 +48,7 @@ tests = [
4848
"pytest>=8.3.5",
4949
"ruff==0.15.4",
5050
"smokeshow>=0.5.0",
51+
"ty>=0.0.9",
5152
]
5253

5354
[project.scripts]

β€Ž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)