Skip to content
Myr

pre-commit.yaml

This file

Path

.github/workflows/pre-commit.yaml

25 lines · 983 bytes · YAML

Last changed by

Merge branch 'stable'David Lordbefore adoptioneb58d86

History of this file

Take it

set up pre-commit lite workflowDavid Lordbefore adoption2fec0b2

line 1why, one step back
1name: pre-commit

set up pre-commit lite workflowDavid Lordbefore adoption111e5bd

lines 2–4why, one step back
2on:
3 pull_request:4 push:

update test workflow triggerDavid Lordbefore adoption5e8cb74

line 5why, one step back
5 branches: [main, stable]

set up pre-commit lite workflowDavid Lordbefore adoption111e5bd

lines 6–9why, one step back
6jobs:
7 main:8 runs-on: ubuntu-latest9 steps:

Merge branch 'stable'David Lordbefore adoptioneb58d86

lines 10–11why, one step back
10 - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
11 - uses: astral-sh/setup-uv@61cb8a9741eeb8a550a1b8544337180c0fc8476b # v7.2.0

Merge branch 'stable'David Lordbefore adoptionbc14349

lines 12–14why, one step back
12 with:
13 enable-cache: true14 prune-cache: false

Merge branch 'stable'David Lordbefore adoptioneb58d86

line 15why, one step back
15 - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0

Merge branch 'stable'David Lordbefore adoptionbc14349

lines 16–18why, one step back
16 id: setup-python
17 with:18 python-version-file: pyproject.toml

Merge branch 'stable'David Lordbefore adoptioneb58d86

line 19why, one step back
19 - uses: actions/cache@8b402f58fbc84540c8b491a91e594a4576fec3d7 # v5.0.2

Merge branch 'stable'David Lordbefore adoptionbc14349

lines 20–25why, one step back
20 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() }}