macOS
brew install pre-commitlocal Homebrew formula metadata
sudo port install pre-commitMacPorts ports tree · python/pre-commit/Portfile · ソース: api.github.com
brew / 順位 368
pre-commit のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。
インストール
brew install pre-commitlocal Homebrew formula metadata
sudo port install pre-commitMacPorts ports tree · python/pre-commit/Portfile · ソース: api.github.com
sudo apk add pre-commitAlpine Linux edge package indexes · pre-commit · ソース: dl-cdn.alpinelinux.org
sudo apt install pre-commitDebian stable package indexes · pre-commit · ソース: deb.debian.org
sudo dnf install pre-commitFedora Rawhide package metadata · pre-commit · ソース: dl.fedoraproject.org
nix profile install nixpkgs#pre-commitnixpkgs package indexes · pkgs/by-name/pr/pre-commit/package.nix · ソース: api.github.com
sudo pacman -S pre-commitArch Linux sync databases · pre-commit · ソース: geo.mirror.pkgbuild.com
概要
Framework for managing multi-language pre-commit hooks
履歴
pre-commit is a framework and multi-language package manager for installing and running reusable Git hooks.
pre-commit began in 2014 to replace copied, project-specific Git-hook scripts with reusable hooks that could be shared across repositories and implemented in different languages. Anthony Sottile has been the principal maintainer.
Version 1.0.0 in 2017 formalized semantic versioning and introduced the modern top-level-map configuration format. The project continued broadening language support and refining isolated toolchain installation, reaching the 4.x series in 2024.
pre-commit became broadly distributed across Linux and macOS package managers in addition to its native Python installation routes. Its language adapters let repositories consume hooks implemented in ecosystems such as Python, Node, Ruby, Go, Rust, Docker, and others without requiring every toolchain to be managed directly by each project.
The framework's configuration convention and reusable hook repositories made it a common integration point for formatters, linters, security checks, and repository-policy tools. It is also routinely run in CI against all files, complementing its local Git-hook role.
A project places .pre-commit-config.yaml at its repository root, listing hook repositories, pinned revisions, and selected hooks. Running pre-commit install writes the Git hook, after which configured checks run during commits or other selected Git stages.
pre-commit run --all-files is commonly used for initial adoption and CI. pre-commit autoupdate refreshes configured hook revisions, while the framework caches isolated hook environments for reuse.
pre-commit describes itself as a multi-language package manager for hooks. That framing is important to package enthusiasts: it resolves hook repositories and revisions, creates isolated environments, bootstraps supported runtimes where possible, and reuses cached installations.
Its ecosystem separates the orchestration framework, hook-provider repositories, and project-local YAML policy. This makes heterogeneous developer tooling reproducible without forcing an application's primary dependency manager to own every linter or formatter.
セキュリティ状態
narrow executable package without higher-risk signals.
リスク グリーン · 信頼度 低 · appliance
エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
.pre-commit-config.yaml実行可能ファイル
| コマンド | 種類 | 公開範囲 | メモ |
|---|---|---|---|
pre-commit | cli | グローバル実行可能ファイル |
鮮度
これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。
インストールメタデータ
| パッケージキー | brew:pre-commit |
|---|---|
| バージョン | 4.6.2 |
| パッケージマネージャ | Homebrew |
| パッケージマネージャページ | https://formulae.brew.sh/formula/pre-commit |
| ホームページ | https://pre-commit.com/ |
| リポジトリ | https://github.com/pre-commit/pre-commit |
| 上流ドキュメント | https://pre-commit.com/ |
| ライセンス | MIT |
| ソースアーカイブ | https://files.pythonhosted.org/packages/74/89/1f3e8e1fc3e97de0fa963495832f581f025f29471602a309e48808244292/pre_commit-4.6.2.tar.gz |
| 最終更新 | 2026-09-11T23:11:18Z |
| Pulse | updated |
| 依存関係 | libyaml, python@3.14 |
| Bottle | 利用可能 (対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定義 |
| サービス | 宣言なし |
レジストリ情報
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | pre-commit |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
ソースデータベース一致
一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。
pre-commit 4.2.0-2
Git pre-commit hook framework
sudo apt install pre-commitpre-commit
nix profile install nixpkgs#pre-commitpre-commit 3.6.2-1
Git pre-commit hook framework
sudo apt install pre-commitpre-commit 4.6.2-r0
framework for managing and maintaining multi-language pre-commit hooks
sudo apk add pre-commitpre-commit-pyc 4.6.2-r0
Precompiled Python bytecode for pre-commit
sudo apk add pre-commit-pycpre-commit 4.6.2-1.fc45
Framework for managing and maintaining multi-language pre-commit hooks
sudo dnf install pre-commitpre-commit 4.6.2-1
A framework for managing and maintaining multi-language pre-commit hooks
https://github.com/pre-commit/pre-commit
sudo pacman -S pre-commitpre-commit
sudo port install pre-commitソース経路
このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。
View the package source record on GitHub.