ci: use uvx to run ty in pre-commit hook

uvx runs tools in isolated environments without requiring them as
project dependencies, which is needed for CI where project deps
aren't installed when pre-commit runs.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Riccardo Schirone
2026-01-26 10:49:17 +01:00
committed by Riccardo Schirone
parent c5a617e841
commit dc6b1e0072
+1 -1
View File
@@ -73,7 +73,7 @@ repos:
name: ty type checking
entry: >-
bash -c 'for dir in common orchestrator fuzzer fuzzer_runner patcher program-model seed-gen; do
if [[ "$1" == "$dir/"* ]]; then cd "$dir" && uv run ty check src/; exit $?; fi; done' --
if [[ "$1" == "$dir/"* ]]; then cd "$dir" && uvx ty check src/; exit $?; fi; done' --
language: system
types: [python]
files: ^(common|orchestrator|fuzzer|fuzzer_runner|patcher|program-model|seed-gen)/src/