Skip to content

Commit 0251f0f

Browse files
committed
add ty to lint, precommit, pyproject and uv lock
1 parent 2e4238d commit 0251f0f

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
@@ -35,6 +35,13 @@ repos:
3535
language: unsupported
3636
pass_filenames: false
3737

38+
- id: local-ty
39+
name: ty check
40+
entry: uv run ty check sqlmodel
41+
require_serial: true
42+
language: unsupported
43+
pass_filenames: false
44+
3845
- id: generate-select
3946
language: unsupported
4047
name: generate-select

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ tests = [
8585
"pre-commit>=2.17.0,<5.0.0",
8686
"pytest>=7.0.1,<10.0.0",
8787
"ruff==0.15.5",
88+
"ty>=0.0.9",
8889
"typing-extensions==4.15.0",
8990
]
9091

scripts/lint.sh

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

66
mypy sqlmodel
77
mypy tests/test_select_typing.py
8+
ty check sqlmodel
89
ruff check sqlmodel tests docs_src scripts
910
ruff format sqlmodel tests docs_src scripts --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)