CheckOps
pre-commit
pre-commit is an MIT framework for managing multi-language Git pre-commit hooks, running linters, formatters and checks before code is committed and in CI.
Latest public signals
Not refreshed yet. Refresh reads the public site and, when the entry has a GitHub repository, the latest release.
Introduction
pre-commit is a framework for managing and maintaining multi-language pre-commit hooks. A .pre-commit-config.yaml file lists hook repositories and versions, and pre-commit installs each hook in its own isolated environment, whether it is written in Python, Node, Go, Rust, Ruby or runs in Docker.
Once installed with pre-commit install, hooks run on staged files at every commit, so formatting and lint errors are fixed before review. pre-commit run --all-files runs the same checks in CI, and pre-commit autoupdate bumps hook versions.
In the quality loop pre-commit pushes cheap checks to the earliest possible moment.
The source code is at pre-commit/pre-commit on GitHub under the MIT licence, with about 15,700 stars; the most recent commit was on 9 November 2026.
Features
- Multi-language hooks: Isolated environments per hook.
- Pinned versions: Reproducible hook versions in config.
- Staged-file runs: Checks only what you commit.
- CI mode: Run all hooks on all files.
- Large hook ecosystem: Hooks for most popular linters.
- Hosted service: pre-commit.ci can run and autofix in pull requests.
Pros
- Consistency: Everyone runs the same checks locally.
- Free to use: Open source under the MIT licence, so the core tool costs nothing to use.
- Actively maintained: The repository had commits as recent as 9 November 2026.
- Community: About 15,700 GitHub stars.
Cons
- Can be bypassed:
--no-verifyskips hooks, so CI must enforce them too. - First-run cost: Installing environments takes time.
- Slow hooks hurt: Heavy checks make commits sluggish.
Usage and Links (Example)
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks: [ { id: trailing-whitespace }, { id: check-yaml } ]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.17.4
hooks: [ { id: ruff }, { id: ruff-format } ]
pre-commit install && pre-commit run --all-files
Resources:
Pricing
pre-commit is free and open source under the MIT licence.
Recommended for?
- Any team that wants consistent local checks.
- Polyglot repositories needing many linters.
Conclusion
pre-commit is the simplest way to make linters and formatters run everywhere.
Keep hooks fast, and run the same config in CI.
On CheckOps, pre-commit is filed under the Release & CI gates stage. Related tools listed here include SonarQube, MegaLinter, Super-Linter, reviewdog, Qlty and Codacy. A short trial on a real project, with your own code, data and pipeline, is usually the fastest way to choose between them, because fit matters more than feature lists. Facts here come from the official site, documentation and repository, checked on 11 November 2026.
Alternatives
Other tools on CheckOps that cover similar ground. Open a page, or compare one with pre-commit side by side.
SSonarQubeModernize your AI workflows with code verification for the agentic era.Compare with pre-commit
MMegaLinterMegaLinter is an AGPL-3.0 open-source linter orchestrator from OX Security that runs a large set of linters, formatters and security scanners across many languages in one Docker-based CI job.Compare with pre-commit
SSuper-LinterSuper-Linter is an MIT ready-to-run collection of linters and code analysers packaged as a GitHub Action and container, validating many languages in parallel.Compare with pre-commit
Rreviewdogreviewdog is an MIT tool that posts results from any linter or code analysis tool as pull request review comments, filtered to changed lines, on GitHub, GitLab, Bitbucket and Gerrit.Compare with pre-commit
QQltyQlty is a code quality platform and source-available CLI (Business Source License 1.1) that runs 70+ linters, formatters and security tools across 40+ languages, with cloud coverage and maintainability tracking.Compare with pre-commit
CCodacyCodacy is a SaaS code quality and security platform that scans repositories and pull requests for quality issues, security vulnerabilities, duplication and coverage, with a free IDE extension and plans for teams.Compare with pre-commit