Releases: pre-commit/pre-commit-hooks
Releases · pre-commit/pre-commit-hooks
pre-commit-hooks v2.2.2
pre-commit-hooks v2.2.1
pre-commit-hooks v2.2.0
Features
- Switch from
pyyamltoruamel.yaml - Add a new
--patternoption tono-commit-to-branchfor regex matching branch names.
Fixes
- Set
require_serial: truefor flake8 - Don't run
check-executables-have-shebangs/trailing-whitespacehooks during thecommit-msgstage. - Run
check-byte-order-markeragainsttypes: [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-wrapperis deprecated in description- #343 PR by @TheKevJames.
pre-commit-hooks v2.0.0
Breaking changes
autopep8-wrapperhas been moved to pre-commit/mirrors-autopep8trailing-whitespacedefaults to--no-markdown-linebreak-exthooks.yaml(legacy pre-commit hook metadata) deleted- pre-
typescompatibility metadata removed
Docs
Updating
- Minimum supported version of
pre-commitis now 0.15.0 - Use
autopep8from pre-commit/mirrors-autopep8 - To keep mardown hard linebreaks, for
trailing-whitespaceuseargs: [--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--branchto be specified multiple timescheck-merge-conflict: add--assume-in-mergeto 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
ResourcesWarnings
Misc
- Test against python3.7
- #304 PR by @expobrain.
pre-commit-hooks v1.3.0
Features
- Add an
--unsafeargument tocheck-yamlto allow custom yaml tags- #273 issue by @blackillzone.
- #274 PR by @asottile.
- Automatically remove
pkg-resources==0.0.0inrequirements-txt-fixer- #275 PR by @nvtkaszpir.
- Detect
breakpoint()(python3.7+) indebug-statementshook. - 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
AttributeErrorincheck-builtin-literalsfor some functions- #285 issue by @EgoWumpus.
- #286 PR by @asottile.