Pre-commit auto-update #6
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
| name: Pre-commit auto-update | |
| on: | |
| schedule: | |
| # Run at 00:00 on the first day of every month | |
| - cron: "0 0 1 * *" | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| auto-update: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Setup pixi | |
| uses: prefix-dev/setup-pixi@v0.8.1 | |
| with: | |
| pixi-version: latest | |
| manifest-path: pyproject.toml | |
| environments: dev | |
| - name: Update pre-commit hooks | |
| run: | | |
| pixi run -e dev pre-commit autoupdate | |
| - name: Run pre-commit | |
| run: | | |
| pixi run -e dev pre-commit run --all-files || true | |
| - name: Create Pull Request | |
| uses: peter-evans/create-pull-request@v7 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| branch: update-pre-commit-hooks | |
| title: "chore: update pre-commit hooks" | |
| body: | | |
| ## Automated pre-commit hooks update | |
| This PR updates the pre-commit hooks to their latest versions. | |
| ### What changed | |
| - Updated pre-commit hooks in `.pre-commit-config.yaml` | |
| - Applied any automatic fixes from the updated hooks | |
| ### Review checklist | |
| - [ ] Review the changes made by updated hooks | |
| - [ ] Verify tests still pass | |
| - [ ] Check that linting rules are still appropriate | |
| --- | |
| *This is an automated PR created by the pre-commit-autoupdate workflow.* | |
| commit-message: "chore: update pre-commit hooks" | |
| delete-branch: true |