Features
- Expose
PRE_COMMIT_REMOTE_NAME
andPRE_COMMIT_REMOTE_URL
as environment
variables duringpre-push
hooks.- #1274 issue by @dmbarreiro.
- #1288 PR by @dmbarreiro.
Fixes
- Fix
python -m pre_commit --version
to mentionpre-commit
instead of
__main__.py
.- #1273 issue by @ssbarnea.
- #1276 PR by @orcutt989.
- Don't filter
GIT_SSL_NO_VERIFY
from environment when cloning.- #1293 PR by @schiermike.
- Allow
pre-commit init-templatedir
to succeed even ifcore.hooksPath
is
set.
Misc
- Fix changelog date for 1.21.0.
- #1275 PR by @flaudisio.
Updating
- Removed
pcre
language, usepygrep
instead. - Removed
--tags-only
argument topre-commit autoupdate
(it has done
nothing since 0.14.0). - Remove python2 / python3.5 support. Note that pre-commit still supports
running hooks written in python2, but pre-commit itself requires python 3.6+.