Skip to content

Commit a2d61a1

Browse files
authored
Add ty static analysis (#140)
Signed-off-by: Bradley Reynolds <bradley.reynolds@tailstory.dev>
1 parent 0a6e822 commit a2d61a1

File tree

4 files changed

+32
-0
lines changed

4 files changed

+32
-0
lines changed

.github/workflows/python-ci.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ jobs:
4444
- name: Run mypy
4545
run: uv run mypy --strict src/ tests/
4646

47+
- name: Run ty
48+
run: uv run ty check .
49+
4750
test:
4851
runs-on: ubuntu-latest
4952
strategy:

noxfile.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ def lints(session: nox.Session) -> None:
3737
session.run("ruff", "check", "--fix", ".")
3838
session.run("ruff", "format", ".")
3939
session.run("mypy", "--strict", "src/")
40+
session.run("ty", "check", ".")
4041

4142

4243
@nox.session

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ dev = [
2121
"prek>=0.2.28",
2222
"ruff>=0.12.1",
2323
"mypy>=1.16.1",
24+
"ty>=0.0.12",
2425
]
2526
tests = [
2627
"pytest>=8.4.1",

uv.lock

Lines changed: 27 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)