pre-commit.yaml
This file
Path
.github/workflows/pre-commit.yaml
25 lines · 983 bytes · YAML
Last changed by
Merge branch 'stable' into rst2mystJaron Rosenaubefore adoptionfbbcc96
History of this fileTake it
set up pre-commit lite workflowDavid Lordbefore adoption4a758f5
line 1why, one step back1name: pre-commitset up pre-commit lite workflowDavid Lordbefore adoption0a3b970
lines 2–4why, one step back2on:3 pull_request:4 push:update test workflow triggerDavid Lordbefore adoption02046e7
line 5why, one step back5 branches: [main, stable]set up pre-commit lite workflowDavid Lordbefore adoption0a3b970
lines 6–9why, one step back6jobs:7 main:8 runs-on: ubuntu-latest9 steps:use uv (#2918)Rowlando13before adoption2e1c742
line 10why, one step back10 - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2Merge branch 'stable' into rst2mystJaron Rosenaubefore adoptionfbbcc96
line 11why, one step back11 - uses: astral-sh/setup-uv@f0ec1fc3b38f5e7cd731bb6ce540c5af426746bb # v6.1.0use uv (#2918)Rowlando13before adoption2e1c742
lines 12–25why, one step back12 with:13 enable-cache: true14 prune-cache: false15 - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.016 id: setup-python17 with:18 python-version-file: pyproject.toml19 - uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.320 with:21 path: ~/.cache/pre-commit22 key: pre-commit|${{ hashFiles('pyproject.toml', '.pre-commit-config.yaml') }}23 - run: uv run --locked --group pre-commit pre-commit run --show-diff-on-failure --color=always --all-files24 - uses: pre-commit-ci/lite-action@5d6cc0eb514c891a40562a58a8e71576c5c7fb43 # v1.1.025 if: ${{ !cancelled() }}