Releases: pre-commit/pre-commit-hooks
Releases · pre-commit/pre-commit-hooks
pre-commit-hooks v3.4.0
Features
file-contents-sorter: Add--uniqueargument- #524 PR by @danielhoherd.
check-vcs-permalinks: Add--additional-github-domainoption- #530 PR by @youngminz.
- New hook:
destroyed-symlinksto detect unintentional symlink-breakages on windows.- #511 PR by @m-khvoinitsky.
pre-commit-hooks v3.3.0
Features
file-contents-sorter: add--ignore-caseoption for case-insensitive sortingcheck-added-large-files: add--enforce-alloption 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-markeris 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 detectionwdbdebuggerrequirements-txt-fixer: support line continuation for dependencies- #469 PR by @aniketbhatnagar.
- #465 issue by @aniketbhatnagar.
Fixes
detect-aws-credentials: fixUnicodeDecodeErrorwhen running on non-UTF8 files.
Updating
-
pre-commit/pre-commit-hooks now requires python3.6.1+
-
flake8/pyflakeshave been removed, useflake8frompycqa/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
flake8frompycqa/flake8instead:- 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-jsonwhen run without--autofix. - Add
--charsoption totrailing-whitespacefixer to control which characters are stripped instead of all whitespace.- #421 PR by @iconmaster5326.
Fixes
- Fix
requirements-txt-fixerwhen 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
rpdbto detected debuggers indebug-statements- #389 PR by @danlamanna.
- Add
check-tomlhook
Fixes
- Add
__main__block topre_commit.file_contents_sorterso it can be invoked usingpython -m- #405 PR by @squeaky-pl.