pkg.soopen package index

brew / Rang 368

pre-commit mit Homebrew, apk, apt, dnf, MacPorts, Nix, pacman installieren

Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für pre-commit in AI-Agent-Workflows.

Installation

Weitere Installationsbefehle

macOS

Homebrewverifiziert · 100%
brew install pre-commit

local Homebrew formula metadata

MacPortsverifiziert · 94%
sudo port install pre-commit

MacPorts ports tree · python/pre-commit/Portfile · Quelle: api.github.com

Linux

Alpine Linux apkverifiziert · 92%
sudo apk add pre-commit

Alpine Linux edge package indexes · pre-commit · Quelle: dl-cdn.alpinelinux.org

Debian aptverifiziert · 92%
sudo apt install pre-commit

Debian stable package indexes · pre-commit · Quelle: deb.debian.org

Fedora dnfverifiziert · 92%
sudo dnf install pre-commit

Fedora Rawhide package metadata · pre-commit · Quelle: dl.fedoraproject.org

Nixverifiziert · 92%
nix profile install nixpkgs#pre-commit

nixpkgs package indexes · pkgs/by-name/pr/pre-commit/package.nix · Quelle: api.github.com

Arch Linux pacmanverifiziert · 92%
sudo pacman -S pre-commit

Arch Linux sync databases · pre-commit · Quelle: geo.mirror.pkgbuild.com

Überblick

Paketzusammenfassung

Framework for managing multi-language pre-commit hooks

Befehle und Aliase

  • pre-commit

Verlauf

Projektgeschichte und Nutzung

pre-commit is a framework and multi-language package manager for installing and running reusable Git hooks.

Projektgeschichte

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.

Adoptionsgeschichte

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.

Wie es verwendet wird

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.

Warum Paket-Nerds sich dafür interessieren

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.

Zeitleiste

  • 2014: Version 0.1.0 was released.
  • 2017: Version 1.0.0 adopted semantic versioning and introduced the modern configuration structure.
  • 2024: Version 4.0.0 removed the deprecated python_venv language alias and updated hook-stage naming.
  • 2025: Version 4.1.0 added Julia hook support.

Related projects

  • pre-commit/pre-commit-hooks is the official collection of general-purpose hooks released alongside the framework.
  • pre-commit.ci applies the same configuration in hosted continuous integration.
  • Individual formatter, linter, and security-tool repositories can publish hooks through a .pre-commit-hooks.yaml manifest.

Sicherheitslage

Risikostufe: grün

narrow executable package without higher-risk signals.

Risikoklassifikator

grün Risiko · niedrig Konfidenz · appliance

Warum

  • narrow executable package without higher-risk signals

Signale

  • metadata:no-higher-risk-signals

Installationsverhalten

  • In den Formelmetadaten ist kein Homebrew-Post-install-Hook erfasst.
  • Homebrew-Bottle-Metadaten sind für 6 Plattformziele verfügbar.
  • Installiert mit 2 Laufzeitabhängigkeiten.

Empfohlene Prüfung

Prüfe vor unbeaufsichtigter Agent-Nutzung, ob das Tool Klartext-Credentials liest, Remote-Zustand schreibt, Artefakte veröffentlicht oder Plugins ausführt.

local files

Configuration and credential file locations

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.

Configuration files

Config paths the tool may read or write during local use.

Unix
.pre-commit-config.yaml

Executables

Installierte Executables

BefehlArtSichtbarkeitHinweis
pre-commitcliglobales Executable

Aktualität

Version und Aktualität

Diese Signale trennen das Alter der Seitengenerierung, Aktivität des Paketmanagers und Upstream-Release-Vergleich. Versionsrückstand wird nur gemeldet, wenn eine Evidenz-URL und vergleichbare Versionen vorhanden sind.

Seite generiert2026-09-19
Manager-Version4.6.2
Manager aktualisiert2026-09-11
lokale DatenOK
Upstreamnot checked
neueste erkannte Versionnicht erkannt

https://pre-commit.com/

Installationsmetadaten

Paketmetadaten

Paketschlüsselbrew:pre-commit
Version4.6.2
PaketmanagerHomebrew
Paketmanager-Seitehttps://formulae.brew.sh/formula/pre-commit
Homepagehttps://pre-commit.com/
Repositoryhttps://github.com/pre-commit/pre-commit
Upstream-Dokumentationhttps://pre-commit.com/
LizenzMIT
Quellarchivhttps://files.pythonhosted.org/packages/74/89/1f3e8e1fc3e97de0fa963495832f581f025f29471602a309e48808244292/pre_commit-4.6.2.tar.gz
Zuletzt aktualisiert2026-09-11T23:11:18Z
Pulseupdated
Abhängigkeitenlibyaml, python@3.14
Bottleverfügbar (auf arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnicht definiert
Dienstkeiner deklariert

Registry-Fakten

Details aus der Quelldatenbank

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namepre-commit
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

Source-Datenbank-Treffer

Andere Paketmanager-Einträge

Treffer stammen aus externen Paketmanager-Indizes und bleiben von lokalen Automic-Vault-Paketlinks getrennt.

Debian apt95%

pre-commit 4.2.0-2

Git pre-commit hook framework

https://pre-commit.com

sudo apt install pre-commit
  • Section: utils
  • Architecture: all
  • 6 Abhängigkeiten
  • normalized package name match
  • Abgeglichen nach: Pre Commit
Debian stable package indexes · deb.debian.org · Debian stable package indexes: pre-commit from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

pre-commit

nix profile install nixpkgs#pre-commit
  • normalized package name match
  • Abgeglichen nach: Pre Commit
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/pr/pre-commit/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

pre-commit 3.6.2-1

Git pre-commit hook framework

https://pre-commit.com

sudo apt install pre-commit
  • Section: universe/utils
  • Architecture: all
  • 6 Abhängigkeiten
  • normalized package name match
  • Abgeglichen nach: Pre Commit
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: pre-commit from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

pre-commit 4.6.2-r0

framework for managing and maintaining multi-language pre-commit hooks

https://pre-commit.com

sudo apk add pre-commit
  • License: MIT
  • Architecture: x86_64
  • Source Package: pre-commit
  • 1 Abhängigkeiten
  • 1 stellt bereit
  • normalized package name match
  • Abgeglichen nach: Pre Commit
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: pre-commit from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

pre-commit-pyc 4.6.2-r0

Precompiled Python bytecode for pre-commit

https://pre-commit.com

sudo apk add pre-commit-pyc
  • License: MIT
  • Architecture: x86_64
  • Source Package: pre-commit
  • 1 Abhängigkeiten
  • normalized package name match
  • Abgeglichen nach: Pre Commit
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: pre-commit-pyc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
dnf95%

pre-commit 4.6.2-1.fc45

Framework for managing and maintaining multi-language pre-commit hooks

https://pre-commit.com

sudo dnf install pre-commit
  • License: MIT
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: pre-commit
  • 5 Abhängigkeiten
  • 3 stellt bereit
  • normalized package name match
  • Abgeglichen nach: Pre Commit
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: pre-commit from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/652278618dec9c023176a80c435a32a2c8154869fb0eb662c267a54df28d77d9-primary.xml.zst
pacman95%

pre-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-commit
  • License: MIT
  • Architecture: any
  • 6 Abhängigkeiten
  • 1 stellt bereit
  • normalized package name match
  • Abgeglichen nach: Pre Commit
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: pre-commit from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
MacPorts95%

pre-commit

sudo port install pre-commit
  • normalized package name match
  • Abgeglichen nach: Pre Commit
MacPorts ports tree · api.github.com · MacPorts ports tree: python/pre-commit/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

Quellspur

Aus Repository-Daten generiert

Diese Seite wird von av-web aus dem privaten Paket-SQLite-Artefakt bereitgestellt, das scripts/generate-pkg-sqlite.py erstellt.

Verwendete Quellen

  • Geiger risk classifier
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment
  • pkg.so package database
  • pkgdb category and tag curation