Skip to content
Myr

pre-commit.yaml

This file

Path

.github/workflows/pre-commit.yaml

25 lines · 983 bytes · YAML

Last changed by

Updated dependency management to uv (#2093)David Lordbefore adoption05f5d74

History of this file

Take it

set up pre-commit lite workflowDavid Lordbefore adoptioneb0df04

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

set up pre-commit lite workflowDavid Lordbefore adoption180816e

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

update test workflow triggerDavid Lordbefore adoptionada0a9a

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

set up pre-commit lite workflowDavid Lordbefore adoption180816e

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

Updated dependency management to uv (#2093)David Lordbefore adoption05f5d74

lines 10–25why, one step back
10 - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
11 - uses: astral-sh/setup-uv@f0ec1fc3b38f5e7cd731bb6ce540c5af426746bb # v6.1.012 with:13 enable-cache: true14 prune-cache: false15 - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.016 id: setup-python17 with:18 python-version-file: pyproject.toml19 - uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.320 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() }}