mirror of
https://github.com/trailofbits/buttercup
synced 2026-06-21 14:11:39 +00:00
c5a617e841
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>
20 lines
350 B
YAML
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 |