pre-commit

Install command:
brew install pre-commit

Framework for managing multi-language pre-commit hooks

https://pre-commit.com/

License: MIT

Development: Pull requests

Formula JSON API: /api/formula/pre-commit.json

Formula code: pre-commit.rb on GitHub

Bottle (binary package) installation support provided for:

macOS on
Apple Silicon
golden gate ✅
tahoe ✅
sequoia ✅
Linux ARM64 ✅
x86_64 ✅

Current versions:

stable ✅ 4.7.0
head ⚡️ HEAD

Revision: 2

Depends on:

libyaml 0.2.7 YAML Parser
python@3.15 3.15.2 Interpreted, interactive, object-oriented programming language

Binaries: pre-commit

GitHub Packages downloads:

Last 30 days56,145
Downloads4,007,163
Analytics install events (30 days)7,991
Downloads / install events (30 days)7.0×

Source: GitHub Packages, fetched 2026-12-03T00:58:24Z. Analytics dates: 2026-11-03 to 2026-12-03. Totals exclude downloads from Bintray before the migration to GitHub Packages. Downloads and install attempts measure different things; the difference does not count analytics opt-outs. Definitions and limitations.

Analytics:

30 days90 days365 days
Installs7,97930,967125,310
Installs (--HEAD)1260182
Installs on Request7,96530,925125,049
Installs on Request (--HEAD)1260182
Build Errors68