pre-commit.yaml
This file
Path
.github/workflows/pre-commit.yaml
25 lines · 983 bytes · YAML
Last changed by
update dev dependenciesDavid Lordbefore adoptionf67abc6
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:update dev dependenciesDavid Lordbefore adoptionf67abc6
lines 10–11why, one step back10 - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.111 - uses: astral-sh/setup-uv@5a7eac68fb9809dea845d802897dc5c723910fa3 # v7.1.3use uv (#2918)Rowlando13before adoption2e1c742
lines 12–14why, one step back12 with:13 enable-cache: true14 prune-cache: falseupdate dev dependenciesDavid Lordbefore adoptionf67abc6
line 15why, one step back15 - uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0use uv (#2918)Rowlando13before adoption2e1c742
lines 16–18why, one step back16 id: setup-python17 with:18 python-version-file: pyproject.tomlupdate dev dependenciesDavid Lordbefore adoptionf67abc6
line 19why, one step back19 - uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0use uv (#2918)Rowlando13before adoption2e1c742
lines 20–25why, one step back20 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() }}