Skip to content

Migrate from pre-commit to prek#392

Open
eifinger-bot wants to merge 1 commit intoeifinger:mainfrom
eifinger-bot:feat/migrate-pre-commit-to-prek
Open

Migrate from pre-commit to prek#392
eifinger-bot wants to merge 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>=0.3.0
  • Use prek's builtin hooks for pre-commit-hooks compatibility
  • Update CI workflow cache and commands
  • Remove duplicate local hooks now covered by builtin
  • Update actions/cache to v4

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

Notes

  • Uses uv like here_routing
  • Local hooks kept: ruff, codespell, mypy, pytest, yamllint (require their respective packages)
  • Uses prek's builtin hooks for all pre-commit-hooks replacements

- Replace pre-commit and pre-commit-hooks dependencies with prek>=0.3.0
- Use prek's builtin hooks for pre-commit-hooks compatibility
- Update CI workflow cache and commands
- Remove duplicate local hooks now covered by builtin
- Update actions/cache to v4

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant