pkg.soopen package index

brew / rang 368

Installer pre-commit avec Homebrew, apk, apt, dnf, MacPorts, Nix, pacman

Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de pre-commit pour les workflows d'agents IA.

installation

Commandes d'installation supplémentaires

macOS

Homebrewvérifié · 100%
brew install pre-commit

local Homebrew formula metadata

MacPortsvérifié · 94%
sudo port install pre-commit

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

Linux

Alpine Linux apkvérifié · 92%
sudo apk add pre-commit

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

Debian aptvérifié · 92%
sudo apt install pre-commit

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

Fedora dnfvérifié · 92%
sudo dnf install pre-commit

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

Nixvérifié · 92%
nix profile install nixpkgs#pre-commit

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

Arch Linux pacmanvérifié · 92%
sudo pacman -S pre-commit

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

aperçu

Résumé du paquet

Framework for managing multi-language pre-commit hooks

Commandes et alias

  • pre-commit

historique

Historique du projet et usages

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

Historique du projet

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.

Historique d'adoption

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.

Modes d'utilisation

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.

Pourquoi les passionnés de paquets s'y intéressent

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.

Chronologie

  • 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.

posture de sécurité

Niveau de risque : vert

narrow executable package without higher-risk signals.

Classificateur de risque

risque vert · confiance faible · appliance

Pourquoi

  • narrow executable package without higher-risk signals

Signaux

  • metadata:no-higher-risk-signals

Comportement d'installation

  • Aucun hook post-install Homebrew n’est enregistré dans les métadonnées de formule.
  • Les métadonnées de bottle Homebrew sont disponibles pour 6 plateformes.
  • S’installe avec 2 dépendances d’exécution.

Revue recommandée

Avant une utilisation sans surveillance par un agent, vérifiez si l'outil lit des identifiants en clair, écrit un état distant, publie des artefacts ou lance des plugins.

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

exécutables

Exécutables installés

CommandeTypeExpositionNote
pre-commitcliexécutable global

fraîcheur

Version et fraîcheur

Ces signaux séparent l'âge de génération de la page, l'activité du gestionnaire de paquets et la comparaison avec les versions amont. Un retard de version n'est signalé que lorsqu'une URL de preuve et des versions comparables sont présentes.

page générée2026-09-19
version du gestionnaire4.6.2
gestionnaire mis à jour2026-09-11
données localesOK
amontnot checked
dernière version détectéenon détecté

https://pre-commit.com/

métadonnées d'installation

Métadonnées du paquet

Clé du paquetbrew:pre-commit
Version4.6.2
Gestionnaire de paquetsHomebrew
Page du gestionnaire de paquetshttps://formulae.brew.sh/formula/pre-commit
Page d'accueilhttps://pre-commit.com/
Dépôthttps://github.com/pre-commit/pre-commit
Docs amonthttps://pre-commit.com/
LicenceMIT
Archive sourcehttps://files.pythonhosted.org/packages/74/89/1f3e8e1fc3e97de0fa963495832f581f025f29471602a309e48808244292/pre_commit-4.6.2.tar.gz
Dernière mise à jour2026-09-11T23:11:18Z
Pulseupdated
Dépendanceslibyaml, python@3.14
Bouteilledisponible (sur arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
post-install Homebrewnon défini
Serviceaucun déclaré

faits du registre

Détails de la base source

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

correspondances dans les bases sources

Autres enregistrements de gestionnaires de paquets

Les correspondances proviennent d’index externes de gestionnaires de paquets et restent séparées des liens de paquets Automic Vault locaux.

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 Dépendances
  • normalized package name match
  • Correspondance par : 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
  • Correspondance par : 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 Dépendances
  • normalized package name match
  • Correspondance par : 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 Dépendances
  • 1 fournit
  • normalized package name match
  • Correspondance par : 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 Dépendances
  • normalized package name match
  • Correspondance par : 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 Dépendances
  • 3 fournit
  • normalized package name match
  • Correspondance par : 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 Dépendances
  • 1 fournit
  • normalized package name match
  • Correspondance par : 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
  • Correspondance par : 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

piste source

Généré depuis les données du dépôt

Cette page est servie par av-web depuis l'artéfact SQLite privé des paquets généré par scripts/generate-pkg-sqlite.py.

Sources utilisées

  • 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