Features
- Add an
alias
configuration value to allow repeated hooks to be differentiated- #882 issue by @s0undt3ch.
- #886 PR by @s0undt3ch.
- Add
identity
meta hook which just prints filenames - Factor out
cached-property
and improve startup performance by ~10% - Add a warning on unexpected keys in configuration
- Teach
pre-commit try-repo
to clone uncommitted changes on disk. - Implement
pre-commit gc
which will clean up no-longer-referenced cache repos. - Add top level config
default_language_version
to streamline overriding thelanguage_version
configuration in many places - Add top level config
default_stages
to streamline overriding thestages
configuration in many places
Fixes
- More intelligently pick hook shebang (
#!/usr/bin/env python3
) - Several fixes related to
--files
/--config
: pre-commit try-repo ./relative
while in a sub directory of the git repo is now able to clone properly- Ensure
meta
repos cannot have a language other thansystem
- Fix committing with unstaged files that were
git add --intent-to-add
added
Misc
- Use
--no-gpg-sign
when running tests- #894 PR by @s0undt3ch.