-
Notifications
You must be signed in to change notification settings - Fork 7
57 lines (46 loc) · 1.58 KB
/
pre-commit-autoupdate.yml
File metadata and controls
57 lines (46 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
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