pre-commit.yaml
This file
Path
.github/workflows/pre-commit.yaml
29 lines · 1.0 KiB · YAML
Last changed by
add zizmor to scan workflows (#5945)David Lordbefore adoption4774385
History of this fileTake it
set up pre-commit lite workflowDavid Lordbefore adoption2fec0b2
line 1why, one step back1name: pre-commitset up pre-commit lite workflowDavid Lordbefore adoption111e5bd
lines 2–4why, one step back2on:3 pull_request:4 push:update test workflow triggerDavid Lordbefore adoption5e8cb74
line 5why, one step back5 branches: [main, stable]add zizmor to scan workflows (#5945)David Lordbefore adoption4774385
lines 6–9why, one step back6permissions: {}7concurrency:8 group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}9 cancel-in-progress: trueset up pre-commit lite workflowDavid Lordbefore adoption111e5bd
lines 10–13why, one step back10jobs:11 main:12 runs-on: ubuntu-latest13 steps:update dev dependenciesDavid Lordbefore adoption64dd080
line 14why, one step back14 - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2add zizmor to scan workflows (#5945)David Lordbefore adoption4774385
lines 15–16why, one step back15 with:16 persist-credentials: falseupdate dev dependenciesDavid Lordbefore adoption64dd080
line 17why, one step back17 - uses: astral-sh/setup-uv@61cb8a9741eeb8a550a1b8544337180c0fc8476b # v7.2.0use uv (#5727)David Lordbefore adoption941efd4
lines 18–20why, one step back18 with:19 enable-cache: true20 prune-cache: falseupdate dev dependenciesDavid Lordbefore adoption64dd080
line 21why, one step back21 - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0use uv (#5727)David Lordbefore adoption941efd4
lines 22–24why, one step back22 id: setup-python23 with:24 python-version-file: pyproject.tomlupdate dev dependenciesDavid Lordbefore adoption64dd080
line 25why, one step back25 - uses: actions/cache@8b402f58fbc84540c8b491a91e594a4576fec3d7 # v5.0.2use uv (#5727)David Lordbefore adoption941efd4
lines 26–29why, one step back26 with:27 path: ~/.cache/pre-commit28 key: pre-commit|${{ hashFiles('pyproject.toml', '.pre-commit-config.yaml') }}29 - run: uv run --locked --group pre-commit pre-commit run --show-diff-on-failure --color=always --all-files