mirror of
https://github.com/trailofbits/buttercup
synced 2026-06-21 14:11:39 +00:00
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:
committed by
Riccardo Schirone
parent
c5a617e841
commit
dc6b1e0072
@@ -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/
|
||||
|
||||
Reference in New Issue
Block a user