Skip to content

pre-commit: Autoupdate #910

pre-commit: Autoupdate

pre-commit: Autoupdate #910

# Copyright (c) 2022 Sebastian Pipping <[email protected]>
# Licensed under GPL v2 or later
name: Run pre-commit on all files
on:
- pull_request
- push
jobs:
run_pre_commit:
name: Run pre-commit on all files
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up Python 3.13
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: 3.13
- name: Install pre-commit
run: |-
pip3 install \
--disable-pip-version-check \
--user \
--no-warn-script-location \
pre-commit
echo "PATH=${HOME}/.local/bin:${PATH}" >> "${GITHUB_ENV}"
- name: Install pre-commit hooks
run: |-
pre-commit install --install-hooks
- name: Run pre-commit on all files
run: |-
pre-commit run --all-files --show-diff-on-failure