Update pre-commit hook charliermarsh/ruff-pre-commit to v0.8.3 (#800) #2198
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Runs the pre-commit workflow (formatting & linting) | |
name: Format & Lint | |
on: | |
pull_request: | |
branches: [main] | |
push: | |
branches: [main] | |
permissions: | |
contents: read | |
jobs: | |
run-pre-commit-hooks: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout the GitHub repo | |
uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
- name: Install pre-commit | |
run: python -m pip install pre-commit | |
- name: Display pre-commit version | |
run: python -m pre_commit --version | |
- name: Install pre-commit hooks | |
run: python -m pre_commit install | |
- name: Run pre-commit hooks on all files | |
run: python -m pre_commit run --all-files |