pre-commit
PyPI15.5k GitHub starsv4.6.2 · Aug 2026 · MIT (top-level declared license)
pip install pre-commit- No known CVEs
- 197.6M downloads/mo
- 204 versions
Description
A framework for managing and maintaining multi-language pre-commit hooks.
Licenses
Declared license
MIT (top-level declared license of pre-commit)
Transitive dependency licenses
pre-commit pulls in 9 transitive dependencies across 3 distinct licenses.
| License | Category | Dependencies |
|---|---|---|
| MIT | Permissive | 6 of 9 |
| non-standard | Unknown | 2 of 9 |
| PSF-2.0 | Permissive | 1 of 9 |
This view is derived from declared package metadata, and a full FOSSA scan detects licenses that declared metadata misses. Scan free.
License and vulnerability information on this page is derived from public package metadata and public advisory databases. It is not legal advice, and it reflects the top-level declared license only. Verify the license and terms of any software for your own needs.
Need pre-commit approved? Get the full license and vulnerability report for your codebase. Scan free.
Scan freeVulnerabilities
No known CVEs across published versions
Version history
| Version | Published | License |
|---|---|---|
| 4.6.2 | Aug 2026 | MIT |
| 4.6.1 | Jul 2026 | |
| 4.6.0 | Apr 2026 | |
| 4.5.1 | Dec 2025 | |
| 4.5.0 | Nov 2025 | |
| 4.4.0 | Nov 2025 | |
| 4.3.0 | Aug 2025 | |
| 4.2.0 | Mar 2025 | |
| 4.1.0 | Jan 2025 | |
| 4.0.1 | Oct 2024 | |
| 4.0.0 | Oct 2024 | |
| 3.8.0 | Jul 2024 | |
| 3.7.1 | May 2024 | |
| 3.7.0 | Mar 2024 | |
| 3.6.2 | Feb 2024 | |
| 3.6.1 | Feb 2024 | |
| 3.6.0 | Dec 2023 | |
| 3.5.0 | Oct 2023 | |
| 3.4.0 | Sep 2023 | |
| 3.3.3 | Jun 2023 | |
| 3.3.2 | May 2023 | |
| 3.3.1 | May 2023 | |
| 3.3.0 | May 2023 | |
| 3.2.2 | Apr 2023 | |
| 3.2.1 | Mar 2023 |
25 older releases
| Version | Published | License |
|---|---|---|
| 3.2.0 | Mar 2023 | |
| 3.1.1 | Feb 2023 | |
| 3.1.0 | Feb 2023 | |
| 3.0.4 | Feb 2023 | |
| 3.0.3 | Feb 2023 | |
| 3.0.2 | Jan 2023 | |
| 3.0.1 | Jan 2023 | |
| 3.0.0 | Jan 2023 | |
| 2.21.0 | Dec 2022 | |
| 2.20.0 | Jul 2022 | |
| 2.19.0 | May 2022 | |
| 2.18.1 | Apr 2022 | |
| 2.18.0 | Apr 2022 | |
| 2.17.0 | Jan 2022 | |
| 2.16.0 | Nov 2021 | |
| 2.15.0 | Sep 2021 | |
| 2.14.1 | Aug 2021 | |
| 2.14.0 | Aug 2021 | |
| 2.13.0 | May 2021 | |
| 2.12.1 | Apr 2021 | |
| 2.12.0 | Apr 2021 | |
| 2.11.1 | Mar 2021 | |
| 2.11.0 | Mar 2021 | |
| 2.10.1 | Feb 2021 | |
| 2.10.0 | Jan 2021 |
pip install pre-commit resolves to the 4.x line today. Older major lines may still receive fixes.
Direct dependencies
5 direct dependencies, 9 in total including transitive. Licenses across the full tree are summarized under Licenses.
| Package | Version range | License |
|---|---|---|
| cfgv | >=2.0.0 | MIT |
| identify | >=1.0.0 | MIT |
| nodeenv | >=0.11.1 | Unresolved in metadata |
| pyyaml | >=5.1 | MIT |
| virtualenv | >=20.10.0 | MIT |
Based on what each package declares in its published metadata. The dependencies your build actually installs can differ, and a FOSSA scan of your project resolves the full tree.
Popularity
- Downloads last month
- 197.6M
- Known dependents in this corpus
- 1,290
- GitHub stars
- 15.5k
- OpenSSF score
- 4.6 / 10
FAQ
- What is the latest version of pre-commit?
- The latest version of pre-commit is 4.6.2, published August 2026.
- What license is pre-commit under?
- pre-commit declares MIT as its top-level declared license. Its dependency tree spans 3 distinct licenses.
- Does pre-commit have known vulnerabilities?
- No known CVEs are recorded against published versions of pre-commit.
- How do I install pre-commit?
- Install pre-commit with pip install pre-commit.
- How do I generate an SBOM that includes pre-commit?
- FOSSA's SBOM generator produces SPDX or CycloneDX output for a codebase that includes pre-commit. Generate an SPDX or CycloneDX SBOM free.