pre-commit.yaml
This file
Path
.github/workflows/pre-commit.yaml
29 lines · 1.0 KiB · YAML
Last changed by
Merge branch 'stable'David Lordbefore adoption6a2f545
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]Merge branch 'stable'David Lordbefore adoption4cae5d8
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:Merge branch 'stable'David Lordbefore adoption6a2f545
line 14why, one step back14 - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1Merge branch 'stable'David Lordbefore adoptionbc14349
line 15why, one step back15 with:Merge branch 'stable'David Lordbefore adoption4cae5d8
line 16why, one step back16 persist-credentials: falseMerge branch 'stable'David Lordbefore adoption6a2f545
line 17why, one step back17 - uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0Merge branch 'stable'David Lordbefore adoption4cae5d8
line 18why, one step back18 with:Merge branch 'stable'David Lordbefore adoptionbc14349
lines 19–20why, one step back19 enable-cache: true20 prune-cache: falseMerge branch 'stable'David Lordbefore adoption6a2f545
line 21why, one step back21 - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0Merge branch 'stable'David Lordbefore adoptionbc14349
lines 22–24why, one step back22 id: setup-python23 with:24 python-version-file: pyproject.tomlMerge branch 'stable'David Lordbefore adoption6a2f545
line 25why, one step back25 - uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0Merge branch 'stable'David Lordbefore adoptionbc14349
lines 26–28why, one step back26 with:27 path: ~/.cache/pre-commit28 key: pre-commit|${{ hashFiles('pyproject.toml', '.pre-commit-config.yaml') }}Merge branch 'stable'David Lordbefore adoptione4e4bf6
line 29why, one step back29 - run: uv run --locked --no-default-groups --group pre-commit pre-commit run --show-diff-on-failure --color=always --all-files