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.5 YAML Parser
python@3.15 3.15.2 Interpreted, interactive, object-oriented programming language

Binaries: pre-commit

GitHub Packages downloads:

Last 30 days124,584
Downloads3,971,911
Analytics install events (30 days)17,300
Downloads / install events (30 days)7.2×

Source: GitHub Packages, fetched 2026-11-13T00:51:16Z. Analytics dates: 2026-10-14 to 2026-11-13. 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
Installs17,26531,944132,021
Installs (--HEAD)3570198
Installs on Request17,23831,891131,738
Installs on Request (--HEAD)3570198
Build Errors68