blumeops/docs/how-to/zot
Erich Blume 7a1875936c Switch git hooks from pre-commit to prek (#276)
## Summary

- Replace pre-commit with [prek](https://github.com/j178/prek), a faster Rust-native drop-in alternative
- Migrate config from `.pre-commit-config.yaml` (YAML) to `prek.toml` (TOML)
- Add new built-in checks: case conflicts, private key detection, executable shebangs
- Install prek via mise native registry (`aqua:j178/prek`) instead of pipx
- Update all doc references across README, contributing guide, and how-to docs

## Notes

- `check-yaml` still uses the remote `pre-commit-hooks` repo because prek's builtin fast path doesn't support `--unsafe` yet (needed for Ansible custom YAML tags)
- All existing custom hooks (docs validation, container version check, mikado invariant, workflow validation) work unchanged
- Tested: all hooks pass on clean tree, deliberate doc link breakage is caught

## Test plan

- [x] `prek run --all-files` passes all checks
- [x] Broken wiki-link correctly caught by `docs-check-links`
- [x] taplo-format auto-fixes TOML formatting on commit
- [x] commit-msg hook (mikado invariant) fires correctly

Reviewed-on: https://forge.ops.eblu.me/eblume/blumeops/pulls/276
2026-03-02 18:15:23 -08:00
..
add-container-version-sync-check.md Switch git hooks from pre-commit to prek (#276) 2026-03-02 18:15:23 -08:00
add-dagger-nix-build.md Harden zot registry, pt 1 (#231) 2026-02-20 22:50:01 -08:00
adopt-commit-based-container-tags.md Switch git hooks from pre-commit to prek (#276) 2026-03-02 18:15:23 -08:00
enforce-tag-immutability.md Docs pass: update zot Mikado chain for completion 2026-02-21 15:32:34 -08:00
fix-ntfy-nix-version.md Migrate upstream mirrors to mirrors/ Forgejo org (#265) 2026-02-24 20:43:14 -08:00
harden-zot-registry.md Docs pass: update zot Mikado chain for completion 2026-02-21 15:32:34 -08:00
install-dagger-on-nix-runner.md Update install-dagger-on-nix-runner card with actual resolution 2026-02-20 23:23:06 -08:00
pin-container-versions.md Harden zot registry, pt 1 (#231) 2026-02-20 22:50:01 -08:00
register-zot-oidc-client.md Close register-zot-oidc-client Mikado card 2026-02-21 08:49:32 -08:00
wire-ci-registry-auth.md Enable zot registry auth + wire CI credentials (#237) 2026-02-21 12:20:29 -08:00