Pre-commit

Latest version: v4.5.1

Safety actively analyzes 883940 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 34

4.5.1

==================

Fixes
- Fix `language: python` with `repo: local` without `additional_dependencies`.
- 3597 PR by asottile.

4.5.0

==================

Features
- Add `pre-commit hazmat`.
- 3585 PR by asottile.

4.4.0

==================

Features
- Add `--fail-fast` option to `pre-commit run`.
- 3528 PR by JulianMaurin.
- Upgrade `ruby-build` / `rbenv`.
- 3566 PR by asottile.
- 3565 issue by MRigal.
- Add `language: unsupported` / `language: unsupported_script` as aliases
for `language: system` / `language: script` (which will eventually be
deprecated).
- 3577 PR by asottile.
- Add support docker-in-docker detection for cgroups v2.
- 3535 PR by br-rhrbacek.
- 3360 issue by JasonAlt.

Fixes
- Handle when docker gives `SecurityOptions: null`.
- 3537 PR by asottile.
- 3514 issue by jenstroeger.
- Fix error context for invalid `stages` in `.pre-commit-config.yaml`.
- 3576 PR by asottile.

4.3.0

==================

Features
- `language: docker` / `language: docker_image`: detect rootless docker.
- 3446 PR by matthewhughes934.
- 1243 issue by dkolepp.
- `language: julia`: avoid `startup.jl` when executing hooks.
- 3496 PR by ericphanson.
- `language: dart`: support latest dart versions which require a higher sdk
lower bound.
- 3507 PR by bc-lee.

4.2.0

==================

Features
- For `language: python` first attempt a versioned python executable for
the default language version before consulting a potentially unversioned
`sys.executable`.
- 3430 PR by asottile.

Fixes
- Handle error during conflict detection when a file is named "HEAD"
- 3425 PR by tusharsadhwani.

4.1.0

==================

Features
- Add `language: julia`.
- 3348 PR by fredrikekre.
- 2689 issue jmuchovej.

Fixes
- Disable automatic toolchain switching for `language: golang`.
- 3304 PR by AleksaC.
- 3300 issue by AleksaC.
- 3149 issue by nijel.
- Fix `language: r` installation when initiated by RStudio.
- 3389 PR by lorenzwalthert.
- 3385 issue by lorenzwalthert.

Page 1 of 34

© 2026 Safety CLI Cybersecurity Inc. All Rights Reserved.