Comparison
lefthook vs prek
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Git hooks manager. Fast, powerful, simple.
Actively maintained. Last release 4 days ago, commits in 19 of the last 26 weeks. A safe choice.
$
pip install lefthookA fast Git hook manager written in Rust, designed as a drop-in alternative to pre-commit, reimagined.
Actively maintained. Last release 4 days ago, commits in 26 of the last 26 weeks. A safe choice.
$
pip install prekIn short
- prek is the most used: 13.1M downloads a month, 18× more than lefthook.
- Maintenance is comparable: lefthook 86, prek 84 on Pythie’s Index.
- prek is the newcomer: first released Aug 2025.
- Safe default for a new project: prek.