Skip to content

Commit 3456058

Browse files
committed
chore: update pre-commit hooks
Run pre-commit autoupdate and add a monthly workflow to update hooks. Signed-off-by: Maryam Tahhan <[email protected]>
1 parent 9a35f57 commit 3456058

File tree

2 files changed

+27
-2
lines changed

2 files changed

+27
-2
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Pre-commit auto-update
2+
on: # yamllint disable-line rule:truthy
3+
schedule:
4+
- cron: 0 0 1 * *
5+
jobs:
6+
auto-update:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- name: Set up Python
11+
uses: actions/setup-python@v5
12+
- name: Install pre-commit
13+
run: pip install pre-commit
14+
- name: Run pre-commit autoupdate
15+
run: pre-commit autoupdate
16+
- name: Create Pull Request
17+
uses: peter-evans/create-pull-request@v7
18+
with:
19+
token: ${{ secrets.GITHUB_TOKEN }}
20+
branch: update/pre-commit-autoupdate
21+
title: Auto-update pre-commit hooks
22+
commit-message: Auto-update pre-commit hooks
23+
body: |
24+
Update pre-commit hooks to latest version
25+
labels: dependencies

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
# See https://pre-commit.com/hooks.html for more hooks
33
repos:
44
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: v2.3.0
5+
rev: v5.0.0
66
hooks:
77
- id: check-yaml
88
- id: end-of-file-fixer
99
- id: trailing-whitespace
1010
- repo: https://github.com/DavidAnson/markdownlint-cli2
11-
rev: v0.9.2
11+
rev: v0.15.0
1212
hooks:
1313
- id: markdownlint-cli2-rules-docker
1414
- repo: https://github.com/shellcheck-py/shellcheck-py

0 commit comments

Comments
 (0)