From dc6b1e0072d2f66a3e3d42bc9e820952e9bde56a Mon Sep 17 00:00:00 2001 From: Riccardo Schirone Date: Mon, 26 Jan 2026 10:49:17 +0100 Subject: [PATCH] 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 --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cc4fb941..21b542b5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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/