pre-commit logo

pre-commit

Framework for managing and maintaining multi-language pre-commit hooks in Git repositories.

pre-commit is a framework that manages and executes pre-commit hooks across multiple programming languages in Git repositories. It allows developers to define a configuration file that specifies which hooks to run before each commit, automating code quality checks, formatting, and validation tasks.

The tool supports hooks written in various languages and can automatically install dependencies for each hook in isolated environments. This ensures that code quality tools like linters, formatters, and security scanners run consistently across different development environments without requiring manual setup of each tool.

Developers and teams use pre-commit to enforce coding standards and catch issues before code enters the repository. The framework integrates with existing Git workflows and can be configured to run different sets of hooks for different file types or project requirements.

Alternatives & related tools

add a badge to your README

Maintain pre-commit? Show that it's featured on trmn. The badge links back to this page.

Featured on trmn
Markdown
[![Featured on trmn](https://www.trmn.sh/badge/pre-commit.svg)](https://www.trmn.sh/tools/pre-commit?utm_source=badge)
HTML
<a href="https://www.trmn.sh/tools/pre-commit?utm_source=badge"><img src="https://www.trmn.sh/badge/pre-commit.svg" alt="Featured on trmn" height="20"></a>