pre-commit
A framework for managing and maintaining multi-language pre-commit hooks. observed · 2026-08-28
Health v2 · maintenance only
94/100
- Activity 98
- Release rhythm 85
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 74.0
- age_days: 4557
- days_rel: 23
- days_push: 16
- n_releases_24m: 11
Adoption not part of the score
15536 stars · 1001 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
pre-commit is a framework for managing and maintaining multi-language Git pre-commit hooks. It automatically installs and runs hooks written in any language before each commit, catching issues like formatting errors and debug statements before code review.
Use cases
- run linters automatically before every git commit
- share linting hooks across multiple projects
- use linters written in other languages without installing their toolchains
- check for trailing whitespace and missing semicolons on commit
- enforce code style checks before code review
- manage pre-commit hook dependencies without root access
When to choose
- you want consistent automated checks on every commit across a team
- your project uses linters written in multiple languages
- you want to share hook configurations across many repositories
- you want to catch trivial style issues before human review
When to avoid
- you only need a CI pipeline check without local git hooks
- your team commits infrequently and hooks would slow the workflow
- you need hooks for non-git version control systems
Facets
framework · maturity stable
linter developer-tools cli code-review formatter developer-tools version-control python cross-platform cli git-hooks pre-commit-hooks code-quality multi-language linting command-line automation
5 sources
- readme: https://github.com/pre-commit/pre-commit · fetched 2026-08-28 · e247ace0ab84
- homepage: https://pre-commit.com · fetched 2026-08-29 · 2441b1c2f7d4
- registry_pypi: https://pypi.org/pypi/pre-commit/json · fetched 2026-08-29 · be2f31705b53
- registry_pypi: https://pypi.org/pypi/pre-commit-hooks/json · fetched 2026-08-29 · 3377edd81869
- site_page: https://pre-commit.com/index.html · fetched 2026-08-29 · 2441b1c2f7d4
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| pre-commit/pre-commit | main | 94 |
| pre-commit/pre-commit-hooks | plugin | 68 |
For agents
markdown · JSON · MCP: product_card(name="pre-commit/pre-commit")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem