chore(dev): adopt pre-commit hooks #4
Workflow file for this run
This file contains hidden or 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
| # SPDX-FileCopyrightText: 2017 Scott Shawcroft, written for Adafruit Industries | |
| # | |
| # SPDX-License-Identifier: MIT | |
| name: Pre-commit Hooks | |
| on: | |
| pull_request: | |
| branches: [main] | |
| push: | |
| branches: [main] | |
| permissions: {} | |
| jobs: | |
| pre-commit: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| persist-credentials: false | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.12' | |
| - name: Run pre-commit | |
| run: >- | |
| pipx run | |
| pre-commit run | |
| --all-files | |
| --show-diff-on-failure | |
| --color always |