Releases: pre-commit/pre-commit-hooks
Releases · pre-commit/pre-commit-hooks
pre-commit-hooks v2.2.1
pre-commit-hooks v2.2.0
Features
- Switch from
pyyaml
toruamel.yaml
- Add a new
--pattern
option tono-commit-to-branch
for regex matching branch names.
Fixes
- Set
require_serial: true
for flake8 - Don't run
check-executables-have-shebangs
/trailing-whitespace
hooks during thecommit-msg
stage. - Run
check-byte-order-marker
againsttypes: [text]
- Do not require UTF-8-encoded files for
check-docstring-first
- #345 issue by @x007007007.
- #374 PR by @asottile.
Misc.
pre-commit-hooks v2.1.0
Features
- Detect PGP/GPG private keys in
detect-private-key
- #329 PR by @rpdelaney.
- Report filenames when fixing files in
mixed-line-endings
Fixes
- Handle CRLF / CR line endings in
end-of-file-fixer
- #327 PR by @mtkennerly.
Docs
- Clarify and document arguments for
detect-aws-credentials
- #333 PR by @rpdelaney.
- Clarify
autopep8-wrapper
is deprecated in description- #343 PR by @TheKevJames.
pre-commit-hooks v2.0.0
Breaking changes
autopep8-wrapper
has been moved to pre-commit/mirrors-autopep8trailing-whitespace
defaults to--no-markdown-linebreak-ext
hooks.yaml
(legacy pre-commit hook metadata) deleted- pre-
types
compatibility metadata removed
Docs
Updating
- Minimum supported version of
pre-commit
is now 0.15.0 - Use
autopep8
from pre-commit/mirrors-autopep8 - To keep mardown hard linebreaks, for
trailing-whitespace
useargs: [--markdown-linebreak-ext=md,markdown]
(the previous default value)
pre-commit-hooks v1.4.0-1
pre-commit-hooks v1.4.0
Features
no-commit-to-branch
: allow--branch
to be specified multiple timescheck-merge-conflict
: add--assume-in-merge
to force checks outside of a merge commit situation- #300 issue by @vinayinvicible.
- #301 PR by @vinayinvicible.
Fixes
- Don't match whitespace in VCS urls
- Fix invalid escape sequences
- Fix
ResourcesWarning
s
Misc
- Test against python3.7
- #304 PR by @expobrain.
pre-commit-hooks v1.3.0
Features
- Add an
--unsafe
argument tocheck-yaml
to allow custom yaml tags- #273 issue by @blackillzone.
- #274 PR by @asottile.
- Automatically remove
pkg-resources==0.0.0
inrequirements-txt-fixer
- #275 PR by @nvtkaszpir.
- Detect
breakpoint()
(python3.7+) indebug-statements
hook. - Detect sshcom and putty hooks in
detect-private-key
Fixes
- Open files as UTF-8 (
autopep8-wrapper
,check-docstring-first
,double-quote-string-fixer
)- #279 PR by @nvtkaszpir.
- Fix
AttributeError
incheck-builtin-literals
for some functions- #285 issue by @EgoWumpus.
- #286 PR by @asottile.
pre-commit-hooks v1.2.3
pre-commit-hooks v1.2.2
pre-commit-hooks v1.2.1-1
(Note: this is a tag-only release as no code changes occurred)
Fixes:
- Don't pass filenames for
no-commit-to-branch
- #268 issue by @dongyuzheng.
- #269 PR by @asottile.