Releases: pre-commit/pre-commit
Releases · pre-commit/pre-commit
pre-commit v1.4.5
pre-commit v1.4.4
pre-commit v1.4.3
pre-commit v1.4.2
Fixes
pre-commit
no longer clearsGIT_SSH
environment variable when cloning.- #671 PR by @rp-tanium.
pre-commit v1.4.1
Fixes
pre-commit autoupdate --repo ...
no longer deletes other repos.- #660 issue by @KevinHock.
- #661 PR by @KevinHock.
pre-commit v1.4.0
Features
- Lazily install repositories.
- Version defaulting now applies to local hooks as well.
- Add new
repo: meta
hooks.meta
hooks expose some linters of the pre-commit configuration itself.id: check-useless-excludes
: ensures thatexclude
directives actually apply to any file in the repository.id: check-hooks-apply
: ensures that the configured hooks apply to at least one file in the repository.- pre-commit/pre-commit-hooks#63 issue by @asottile.
- #405 issue by @asottile.
- #643 PR by @hackedd.
- #653 PR by @asottile.
- #654 PR by @asottile.
- Allow a specific repository to be autoupdated instead of all repositories.
pre-commit autoupdate --repo ...
- #656 issue by @KevinHock.
- #657 PR by @KevinHock.
Fixes
- Apply selinux labelling option to docker volumes
- #642 PR by @jimmidyson.
pre-commit v1.3.0
Features
- Add
pre-commit try-repo
commands- The new
try-repo
takes a repo and will run the hooks configured in that hook repository. - An example invocation:
pre-commit try-repo https://github.com/pre-commit/pre-commit-hooks
pre-commit try-repo
can also take all the same arguments aspre-commit run
.- It can be used to try out a repository without needing to configure it.
- It can also be used to test a hook repository while developing it.
- #589 issue by @sverhagen.
- #633 PR by @asottile.
- The new
pre-commit v1.2.0
Features
- Add
pygrep
language
Fixes
- Use
pipes.quote
for executable path in hook template - Clean up hook template
- Use
file://
protocol for cloning under test - Add
ctypes
as an import for virtualenv healthchecks