Comparison
lefthook vs pre-commit
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 framework for managing and maintaining multi-language pre-commit hooks.
Actively maintained. Last release 7 weeks ago, commits in 10 of the last 26 weeks. A safe choice.
$
pip install pre-commitIn short
- pre-commit is the most used: 155M downloads a month, 216× more than lefthook.
- Maintenance is comparable: lefthook 86, pre-commit 77 on Pythie’s Index.
- Safe default for a new project: pre-commit.
Side by side
| Metric | lefthook | pre-commit |
|---|---|---|
| Pythie’s Index | Pythie’s Index: 86 | 77 |