Skip to content

Disable example pre-commit config installation in standalone build pa… #3

Disable example pre-commit config installation in standalone build pa…

Disable example pre-commit config installation in standalone build pa… #3

Workflow file for this run

# Runs the same hooks contributors see locally (see .pre-commit-config.yaml).
name: Pre-commit
on:
push:
branches: [main, master]
pull_request:
permissions:
contents: read
concurrency:
group: pre-commit-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
pre-commit:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Cache pre-commit environments
uses: actions/cache@v4
with:
path: ~/.cache/pre-commit
key: pre-commit-${{ runner.os }}-${{ hashFiles('.pre-commit-config.yaml') }}
restore-keys: |
pre-commit-${{ runner.os }}-
- uses: pre-commit/action@v3.0.1