Features
- No longer require being in a
git
repo to runpre-commit
clean
/gc
/sample-config
. - Improve command line length limit detection.
- #691 issue by @antonbabenko.
- #966 PR by @asottile.
- Use shallow cloning when possible.
- #958 PR by @DanielChabrowski.
- Add
minimum_pre_commit_version
top level key to require a new-enough version ofpre-commit
. - Add helpful CI-friendly message when running
pre-commit run --all-files --show-diff-on-failure
.- #982 PR by @bnorquist.
Fixes
- Fix
try-repo
for staged untracked changes.- #973 PR by @DanielChabrowski.
- Fix rpm build by explicitly using
#!/usr/bin/env python3
in hook template. - Guard against infinite recursion when executing legacy hook script.
- #981 PR by @tristan0x.
Misc
- Add test for
git.no_git_env()
- #972 PR by @javabrett.