pre-commit.yaml
This file
Path
.github/workflows/pre-commit.yaml
25 lines · 983 bytes · YAML
Last changed by
Merge branch 'stable' of https://github.com/pallets/click into release-8.3.2Edward Gbefore adoption502b7ce
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:Merge branch 'stable' of https://github.com/pallets/click into release-8.3.2Edward Gbefore adoption502b7ce
lines 10–11why, one step back10 - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.211 - uses: astral-sh/setup-uv@e06108dd0aef18192324c70427afc47652e63a82 # v7.5.0use uv (#2918)Rowlando13before adoption2e1c742
lines 12–14why, one step back12 with:13 enable-cache: true14 prune-cache: falseMerge branch 'stable' of https://github.com/pallets/click into release-8.3.2Edward Gbefore adoption502b7ce
line 15why, one step back15 - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0use uv (#2918)Rowlando13before adoption2e1c742
lines 16–18why, one step back16 id: setup-python17 with:18 python-version-file: pyproject.tomlMerge branch 'stable' of https://github.com/pallets/click into release-8.3.2Edward Gbefore adoption502b7ce
line 19why, one step back19 - uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3use 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() }}