Skip to content

Commit d2834ed

Browse files
authored
chore: replace pre-commit with prek (#104)
1 parent a86b2b3 commit d2834ed

File tree

4 files changed

+23
-1
lines changed

4 files changed

+23
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ jobs:
2525
- uses: actions/checkout@v6.0.1
2626
with:
2727
persist-credentials: false
28-
- uses: pre-commit/action@v3.0.1
28+
- uses: j178/prek-action@v1.0.12
29+
with:
30+
# renovate: datasource=pypi dependency=prek
31+
prek-version: "0.3.0"
2932
test:
3033
runs-on: ubuntu-latest
3134
services:

.pre-commit-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ repos:
55
- id: trailing-whitespace
66
- id: end-of-file-fixer
77
- id: check-builtin-literals
8+
- id: check-added-large-files
89
- id: check-case-conflict
910
- id: check-executables-have-shebangs
1011
- id: check-json
@@ -17,6 +18,10 @@ repos:
1718
- id: check-yaml
1819
- id: debug-statements
1920
- id: detect-private-key
21+
- id: mixed-line-ending
22+
- repo: builtin
23+
hooks:
24+
- id: check-json5
2025

2126
# https://docs.astral.sh/ruff/integrations/#pre-commit
2227
- repo: https://github.com/astral-sh/ruff-pre-commit

renovate.json5

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
// set timezone to local one to ensure schedules are run
88
// https://docs.renovatebot.com/configuration-options/#timezone
99
":timezone(America/Toronto)",
10+
// https://docs.renovatebot.com/presets-schedule/#scheduleweekly
11+
"schedule:weekly",
12+
// https://docs.renovatebot.com/presets-helpers/#helperspingithubactiondigeststosemver
13+
"helpers:pinGitHubActionDigestsToSemver",
1014
"github>mschoettle/renovate-presets//presets/docker-alpine.json5",
1115
"github>mschoettle/renovate-presets//presets/pre-commit-hooks.json5",
1216
],
@@ -42,4 +46,13 @@
4246
]
4347
}
4448
],
49+
"packageRules": [
50+
// Automerge uv
51+
{
52+
"matchPackageNames": ["/^uv$/"],
53+
"automerge": true,
54+
// Don't use a schedule
55+
"schedule": [],
56+
},
57+
],
4558
}

zizmor.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ rules:
1010
docker/*: ref-pin
1111
fsfe/reuse-action: ref-pin
1212
pre-commit/action: ref-pin
13+
j178/prek-action: ref-pin

0 commit comments

Comments
 (0)