Skip to content

Migrate from pre-commit to prek#88

Merged
eifinger merged 1 commit intoeifinger:mainfrom
eifinger-bot:feat/migrate-pre-commit-to-prek
Feb 1, 2026
Merged

Migrate from pre-commit to prek#88
eifinger merged 1 commit intoeifinger:mainfrom
eifinger-bot:feat/migrate-pre-commit-to-prek

Conversation

@eifinger-bot
Copy link
Contributor

Summary

Migrate the project from pre-commit to prek - a faster, Rust-based drop-in replacement.

Changes

  • Replace pre-commit and pre-commit-hooks dependencies with prek
  • Add prek's builtin hooks for common checks (trailing-whitespace, end-of-file-fixer, check-yaml, check-json)
  • Remove duplicate local hooks that are now covered by builtin
  • Update CI workflow to cache ~/.cache/prek and run prek run --all-files

Benefits

  • ⚡ Faster hook execution with Rust-native implementations
  • 📦 Single binary without Python runtime dependency
  • 🚀 Automatic fast path for supported hooks
  • 💾 Better performance and disk space usage

Verification

  • uv sync completes successfully with prek installed
  • All existing hooks remain functional

@eifinger-bot eifinger-bot force-pushed the feat/migrate-pre-commit-to-prek branch from 5fce7a7 to 60e1f51 Compare February 1, 2026 13:40
@eifinger eifinger added the dependencies Pull requests that update a dependency file label Feb 1, 2026
@eifinger-bot eifinger-bot force-pushed the feat/migrate-pre-commit-to-prek branch from 60e1f51 to 920eda6 Compare February 1, 2026 13:42
- Replace pre-commit with prek in dependencies
- Use prek's builtin hooks for pre-commit-hooks compatibility
- Update CI workflow cache and commands
- Remove duplicate local hooks now covered by builtin

Benefits:
- Faster hook execution with Rust-native implementations
- Single binary without Python runtime dependency
- Automatic fast path for supported hooks
- Better performance and disk space usage
@eifinger-bot eifinger-bot force-pushed the feat/migrate-pre-commit-to-prek branch from 920eda6 to 12d7fff Compare February 1, 2026 14:15
@eifinger eifinger merged commit 831753c into eifinger:main Feb 1, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants