Releases: pre-commit/pre-commit
Releases · pre-commit/pre-commit
pre-commit v3.1.1
Fixes
- Fix
rustwithlanguage_versionand a non-writable hostRUSTUP_HOME.
pre-commit v3.1.0
Fixes
- Fix
dotnetfor.sln-based hooks for dotnet>=7.0.200. - Prevent stashing when
difffails to execute. - Dependencies are no longer sorted in repository key.
Updating
pre-commit v3.0.4
Fixes
- Fix hook diff detection for files affected by
--textconv.- #2743 PR by @adamchainz.
- #2743 issue by @adamchainz.
pre-commit v3.0.3
Fixes
- Revert "Prevent local
Gemfilefrom interfering with hook execution.".- #2739 issue by @Roguelazer.
- #2740 PR by @asottile.
pre-commit v3.0.2
Fixes
- Prevent local
Gemfilefrom interfering with hook execution. - Fix
language: r,repo: localhooks- pre-commit-ci/issues#107 by @lorenzwalthert.
- #2728 PR by @asottile.
pre-commit v3.0.1
pre-commit v3.0.0
Features
- Make
language: golangbootstrapgoif not present.- #2651 PR by @taoufik07.
- #2649 issue by @taoufik07.
language: coursiernow supportsadditional_dependenciesandrepo: local- Upgrade
ruby-buildto20221225.
Fixes
- Improve error message for invalid yaml for
pre-commit autoupdate.- #2686 PR by @asottile.
- #2685 issue by @CarstenGrohmann.
repo: localno longer provisions an emptygitrepo.
Updating
- Drop support for python<3.8
- Drop support for top-level list, use
pre-commit migrate-configto update. - Drop support for
shato specify revision, usepre-commit migrate-configto update. - Remove
pre-commit-validate-configandpre-commit-validate-manifest, usepre-commit validate-configandpre-commit validate-manifestinstead. language: golanghooks must usego.modto specify dependencies- #2672 PR by @taoufik07.
pre-commit v2.21.0
Features
- Require new-enough virtualenv to prevent 3.10 breakage
- Respect aliases with
SKIPfor environment install. - Allow
pre-commit run --filesagainst unmerged paths. - Also apply regex warnings to
repo: localhooks.- #2524 PR by @chrisRedwine.
- #2521 issue by @asottile.
rustis now a "first class" language -- supportinglanguage_versionand installation when not present.rnow uses more-reliable binary installation.- #2460 PR by @lorenzwalthert.
GIT_ALLOW_PROTOCOLis now passed through for git operations.GIT_ASKPASSis now passed through for git operations.- Remove
tomldependency by usingcargo adddirectly. - Support
dotnethooks which have dotted prefixes.
Fixes
- Properly adjust
--commit-msg-filenameif run from a sub directory. - Simplify
--intent-to-adddetection by usinggit diff. - Fix
R.exeselection on windows.- #2605 PR by @lorenzwalthert.
- #2599 issue by @SInginc.
- Skip default
nugetsource when installingdotnetpackages.
pre-commit v2.20.0
Features
- Expose
sourceandobject-name(positional args) ofprepare-commit-msghook asPRE_COMMIT_COMIT_MSG_SOURCEandPRE_COMMIT_COMMIT_OBJECT_NAME.- #2407 PR by @M-Whitaker.
- #2406 issue by @M-Whitaker.
Fixes
- Fix
language: rubyinstalls when--user-installis set in gemrc. - Adjust pty setup for solaris.
- Remove unused
--configoption fromgc,sample-config,validate-config,validate-manifestsub-commands.
pre-commit v2.19.0
Features
- Allow multiple outputs from
language: dotnethooks.- #2332 PR by @WallucePinkham.
- Add more information to
healthy()failure. - Upgrade ruby-build.
- Add
pre-commit validate-config/pre-commit validate-manifestand deprecatepre-commit-validate-configandpre-commit-validate-manifest.

