Skip to main content
FOSSA Logo
Skip to package details

pre-commit

PyPI15.5k GitHub stars

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

LicenseCategoryDependencies
MITPermissive6 of 9
non-standardUnknown2 of 9
PSF-2.0Permissive1 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 free

Vulnerabilities

No known CVEs across published versions

Version history

Published versions
VersionPublishedLicense
4.6.2Aug 2026MIT
4.6.1Jul 2026
4.6.0Apr 2026
4.5.1Dec 2025
4.5.0Nov 2025
4.4.0Nov 2025
4.3.0Aug 2025
4.2.0Mar 2025
4.1.0Jan 2025
4.0.1Oct 2024
4.0.0Oct 2024
3.8.0Jul 2024
3.7.1May 2024
3.7.0Mar 2024
3.6.2Feb 2024
3.6.1Feb 2024
3.6.0Dec 2023
3.5.0Oct 2023
3.4.0Sep 2023
3.3.3Jun 2023
3.3.2May 2023
3.3.1May 2023
3.3.0May 2023
3.2.2Apr 2023
3.2.1Mar 2023
25 older releases
Older published versions
VersionPublishedLicense
3.2.0Mar 2023
3.1.1Feb 2023
3.1.0Feb 2023
3.0.4Feb 2023
3.0.3Feb 2023
3.0.2Jan 2023
3.0.1Jan 2023
3.0.0Jan 2023
2.21.0Dec 2022
2.20.0Jul 2022
2.19.0May 2022
2.18.1Apr 2022
2.18.0Apr 2022
2.17.0Jan 2022
2.16.0Nov 2021
2.15.0Sep 2021
2.14.1Aug 2021
2.14.0Aug 2021
2.13.0May 2021
2.12.1Apr 2021
2.12.0Apr 2021
2.11.1Mar 2021
2.11.0Mar 2021
2.10.1Feb 2021
2.10.0Jan 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.

Direct dependencies
PackageVersion rangeLicense
cfgv>=2.0.0MIT
identify>=1.0.0MIT
nodeenv>=0.11.1Unresolved in metadata
pyyaml>=5.1MIT
virtualenv>=20.10.0MIT

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.

Dependency graph and package metadata from deps.dev (Google Open Source Insights), used under CC BY 4.0.

Download counts from PyPI Stats, sourced from the Python Software Foundation download statistics. Counts cover the last 180 days and exclude known mirrors.

Repository stars from the GitHub API.

OpenSSF Scorecard results from deps.dev.

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.