Switch git hooks from pre-commit to prek

prek is a faster, Rust-native drop-in replacement for pre-commit.
Migrates config from .pre-commit-config.yaml to prek.toml, adds
built-in checks for case conflicts, private key detection, and
executable shebangs. Updates all doc references.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Erich Blume 2026-03-02 18:14:03 -08:00
commit 63263abb97
12 changed files with 192 additions and 170 deletions

View file

@ -27,7 +27,7 @@ The repo includes a `Brewfile` and `mise.toml` for easy setup, but these are opt
- `tea` - Gitea/Forgejo CLI for creating PRs
- `argocd` - ArgoCD CLI for deployments
- `pre-commit` - Git hooks for validation
- `prek` - Git hooks for validation
### Using Brewfile (Optional)
@ -42,12 +42,12 @@ Mise manages language toolchains and runs tasks:
mise install # installs Python, Node.js, etc. from mise.toml
```
### Pre-commit Hooks
### Git Hooks (prek)
Pre-commit hooks validate changes on `git commit`:
Git hooks validate changes on `git commit`:
```bash
pre-commit install
pre-commit run --all-files # verify setup
prek install
prek run --all-files # verify setup
```
All hooks should pass on a fresh clone.