Skip to content

Commit 3e7e896

Browse files
etoyamaclaude
andcommitted
fix(#23): add ty typecheck to pre-commit hooks
Type errors were not caught locally before push, causing CI failures. Add ty check as a pre-commit hook between ruff lint and pytest. Closes #23 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent b400aa2 commit 3e7e896

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.pre-commit-config.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,14 @@ repos:
1717
require_serial: true
1818
exclude: "^\\.claude/"
1919

20+
- id: ty-check
21+
name: "ty: type check"
22+
entry: uv run ty check src/
23+
language: system
24+
pass_filenames: false
25+
always_run: true
26+
types: [python]
27+
2028
- id: pytest
2129
name: pytest
2230
entry: uv run pytest --tb=short -q

0 commit comments

Comments
 (0)