Files
trailofbits-buttercup/.github/workflows/pre-commit.yml
T
Riccardo Schirone c5a617e841 ci: add uv setup to pre-commit workflow
The ty hook requires uv to run `uv run ty check src/`, but the
workflow was missing the uv installation step, causing hook
failures with exit code 127 (uv: command not found).

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-26 10:59:15 +01:00

20 lines
350 B
YAML

name: Pre-commit
on:
pull_request:
push:
branches: [main]
permissions:
contents: read
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-python@v6
with:
python-version: '3.12'
- uses: astral-sh/setup-uv@v6
- uses: pre-commit/action@v3.0.1