Skip to content

Update GitHub Actions dependencies (#5565) #2387

Update GitHub Actions dependencies (#5565)

Update GitHub Actions dependencies (#5565) #2387

name: 'Maintenance: precommit checks'
on: [push, pull_request]
jobs:
pre-commit:
runs-on: ubuntu-latest
name: Run pre-commit checks
steps:
- name: Checkout the repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
# Enablement of https://pre-commit.ci is desirable as it also
# enable auto-fixes for formatting violations. Still we still want to run
# our own GitHub action, just in case the external service becomes
# unavailable.
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: '3.11'
- name: Install pre-commit
run: |
python3 -m pip install --upgrade pip
python3 -m pip install --upgrade pre-commit
- name: Run pre-commit
run: |
pre-commit run --all-files