Releases · pre-commit/pre-commit
pre-commit v4.6.0
Features
pre-commit hook-impl: allow --hook-dir to be missing to enable easier usage with git 2.54+ git hooks.
Fixes
pre-commit hook-impl: --hook-type is required.
pre-commit v4.5.1
Fixes
- Fix
language: python with repo: local without additional_dependencies.
pre-commit v4.4.0
Features
- Add
--fail-fast option to pre-commit run.
- Upgrade
ruby-build / rbenv.
- Add
language: unsupported / language: unsupported_script as aliases for language: system / language: script (which will eventually be deprecated).
- Add support docker-in-docker detection for cgroups v2.
Fixes
- Handle when docker gives
SecurityOptions: null.
- Fix error context for invalid
stages in .pre-commit-config.yaml.
pre-commit v4.3.0
Features
language: docker / language: docker_image: detect rootless docker.
language: julia: avoid startup.jl when executing hooks.
language: dart: support latest dart versions which require a higher sdk
lower bound.
pre-commit v4.2.0
Features
- For
language: python first attempt a versioned python executable for the default language version before consulting a potentially unversioned sys.executable.
Fixes
- Handle error during conflict detection when a file is named "HEAD"
pre-commit v4.1.0
Features
Fixes
- Disable automatic toolchain switching for
language: golang.
- Fix
language: r installation when initiated by RStudio.
pre-commit v4.0.1
Fixes
- Fix
pre-commit migrate-config for unquoted deprecated stages names with
purelib pyyaml.
pre-commit v4.0.0
Features
- Improve
pre-commit migrate-config to handle more yaml formats.
- Handle
stages deprecation in pre-commit migrate-config.
- Upgrade
ruby-build.
- Add "sensible regex" warnings to
repo: meta.
- Add warnings for deprecated
stages (commit -> pre-commit, push ->
pre-push, merge-commit -> pre-merge-commit).
Migrating
language: python_venv has been removed -- use language: python instead.
pre-commit v3.8.0
Features
- Implement health checks for
language: r so environments are recreated if the system version of R changes.