prek — a faster, drop-in alternative to pre-commit (written in Rust)
Hi!
I've rewritten pre-commit in Rust to make it faster and dependency-free while staying compatible with your existing .pre-commit-config.yaml. Plus, it's also providing some user-friendly features!
It's still pretty new but already been adopted by some projects like Airflow, and recommended by Hugo van Kemenade, a CPython core-dev: Ready prek go.
With the upcoming v0.2.0 release, we're bringing first-class workspace/monorepo support!
Check it out on GitHub: https://github.com/j178/prek
Why try it:
- ~10x faster for hook installation and uses less disk.
- Single binary — no Python/runtime required.
- Shared toolchains and parallel clone/install speed things up.
- First-class workspace/monorepo support.
- Rust-native implementations of common hooks.
- Nice UX: run by directory or last commit, select multiple hooks, shell completions.
Thanks!