Releases: pre-commit/pre-commit-hooks
Releases · pre-commit/pre-commit-hooks
pre-commit-hooks v3.3.0
Features
file-contents-sorter
: add--ignore-case
option for case-insensitive sortingcheck-added-large-files
: add--enforce-all
option to check non-added files as well- #519 PR by @mshawcroft.
- #518 issue by @mshawcroft.
fix-byte-order-marker
: new hook which fixes UTF-8 byte-order marker.
Deprecations
check-byte-order-marker
is now deprecated forfix-byte-order-marker
pre-commit-hooks v3.2.0
pre-commit-hooks v3.1.0
Features
check-executables-have-shebangs
: on windows, validate the mode bits usinggit
- #480 PR by @mxr.
- #435 issue by @dstandish.
requirements-txt-fixer
: support more operators
Fixes
pre-commit-hooks-removed
: Fix when removed hooks usedargs
- #487 PR by @pedrocalleja.
- #485 issue by @pedrocalleja.
pre-commit-hooks v3.0.1
Fixes
check-toml
: use UTF-8 encoding to load toml files- #479 PR by @mxr.
- #474 issue by @staticdev.
pre-commit-hooks v3.0.0
Features
detect-aws-credentials
: skip empty aws keysdebug-statements
: add detectionwdb
debuggerrequirements-txt-fixer
: support line continuation for dependencies- #469 PR by @aniketbhatnagar.
- #465 issue by @aniketbhatnagar.
Fixes
detect-aws-credentials
: fixUnicodeDecodeError
when running on non-UTF8 files.
Updating
-
pre-commit/pre-commit-hooks now requires python3.6.1+
-
flake8
/pyflakes
have been removed, useflake8
frompycqa/flake8
instead:- repo: https://gitlab.com/pycqa/flake8 rev: 3.8.1 hooks: - id: flake8
pre-commit-hooks v2.5.0
Fixes
- Fix sorting of requirements which use
egg=...
- #425 PR by @vinayinvicible.
- Fix over-eager regular expression for test filename matching
Updating
-
Use
flake8
frompycqa/flake8
instead:- repo: https://gitlab.com/pycqa/flake8 rev: 3.7.9 hooks: - id: flake8
pre-commit-hooks v2.4.0
Features
- Add diff output to
pretty-format-json
when run without--autofix
. - Add
--chars
option totrailing-whitespace
fixer to control which characters are stripped instead of all whitespace.- #421 PR by @iconmaster5326.
Fixes
- Fix
requirements-txt-fixer
when file does not end in a newline.- #414 issue by @barakreif.
- #415 PR by @barakreif.
- Fix double printing of filename in
pretty-format-json
.
pre-commit-hooks v2.3.0
Features
- Add
rpdb
to detected debuggers indebug-statements
- #389 PR by @danlamanna.
- Add
check-toml
hook
Fixes
- Add
__main__
block topre_commit.file_contents_sorter
so it can be invoked usingpython -m
- #405 PR by @squeaky-pl.