Pre-commit

Latest version: v4.2.0

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

Scan your dependencies

Page 1 of 34

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.

4.0.1

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

Fixes
- Fix `pre-commit migrate-config` for unquoted deprecated stages names with
purelib `pyyaml`.
- 3324 PR by asottile.
- pre-commit-ci/issues234 issue by lorenzwalthert.

4.0.0

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

Features
- Improve `pre-commit migrate-config` to handle more yaml formats.
- 3301 PR by asottile.
- Handle `stages` deprecation in `pre-commit migrate-config`.
- 3302 PR by asottile.
- 2732 issue by asottile.
- Upgrade `ruby-build`.
- 3199 PR by ThisGuyCodes.
- Add "sensible regex" warnings to `repo: meta`.
- 3311 PR by asottile.
- Add warnings for deprecated `stages` (`commit` -> `pre-commit`, `push` ->
`pre-push`, `merge-commit` -> `pre-merge-commit`).
- 3312 PR by asottile.
- 3313 PR by asottile.
- 3315 PR by asottile.
- 2732 issue by asottile.

Migrating
- `language: python_venv` has been removed -- use `language: python` instead.
- 3320 PR by asottile.
- 2734 issue by asottile.

3.8.0

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

Features
- Implement health checks for `language: r` so environments are recreated if
the system version of R changes.
- 3206 issue by lorenzwalthert.
- 3265 PR by lorenzwalthert.

3.7.1

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

Fixes
- Fix `language: rust` default language version check when `rust-toolchain.toml`
is present.
- issue by gaborbernat.
- 3201 PR by asottile.

Page 1 of 34

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.