Commit 12b1269
ci: transition pre-commit to prek with built-in hooks
Switch the hook runner from pre-commit to prek (the Rust reimplementation) and
adopt prek's native built-in hooks.
- CI: replace the setup-uv + cache + `uvx pre-commit run` steps with the
j178/prek-action action (installs prek and caches hook environments). The
workflow is renamed to prek.yaml with job `prek`; SKIP=no-commit-to-branch,mypy
is preserved (mypy has its own workflow; no-commit-to-branch is procedural).
- Config: replace the pre-commit/pre-commit-hooks repo (rev v6.0.0) with prek's
`repo: builtin`. All hooks in use have built-in equivalents; also enable
check-toml, check-case-conflict, fix-byte-order-marker, and
check-illegal-windows-names.
- README: install hooks via `uvx prek install --overwrite ...`.
prek reads the same .pre-commit-config.yaml, and renovate's pre-commit manager
continues to track the remaining external hook revisions.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent d534c73 commit 12b1269
4 files changed
Lines changed: 27 additions & 27 deletions
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
| 2 | + | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
| 14 | + | |
| 15 | + | |
13 | 16 | | |
14 | 17 | | |
15 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | | - | |
| 43 | + | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
0 commit comments