chore(deps): update pre-commit hook pre-commit/pre-commit-hooks to v4
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
pre-commit/pre-commit-hooks | repository | major |
v3.2.0 -> v4.6.0
|
Note: The pre-commit
manager in Renovate is not supported by the pre-commit
maintainers or community. Please do not report any problems there, instead create a Discussion in the Renovate repository if you have any questions.
Release Notes
pre-commit/pre-commit-hooks (pre-commit/pre-commit-hooks)
v4.6.0
: pre-commit-hooks v4.6.0
Features
-
requirements-txt-fixer
: remove duplicate packages.- #1014 MR by @vhoulbreque-withings.
- #960 issue @csibe17.
Migrating
-
fix-encoding-pragma
: deprecated -- will be removed in 5.0.0. use pyupgrade or some other tool.
v4.5.0
: pre-commit-hooks v4.5.0
Features
-
requirements-txt-fixer
: also sortconstraints.txt
by default.- #857 MR by @lev-blit.
- #830 issue by @PLPeeters.
-
debug-statements
: addbpdb
debugger.
Fixes
-
file-contents-sorter
: fix sorting an empty file.- #944 MR by @RoelAdriaans.
- #935 issue by @paduszyk.
-
double-quote-string-fixer
: don't rewrite inside f-strings in 3.12+.- #973 MR by @asottile.
- #971 issue by @XuehaiPan.
Migrating
- now requires python >= 3.8.
- #926 MR by @asottile.
- #927 MR by @asottile.
v4.4.0
: pre-commit-hooks v4.4.0
Features
- forbid-submodules: new hook which outright bans submodules.
- #815 MR by @asottile.
- #707 issue by @ChiefGokhlayeh.
v4.3.0
: pre-commit-hooks v4.3.0
Features
-
check-executables-have-shebangs
: usegit config core.fileMode
to determine if it should querygit
.- #730 MR by @Kurt-von-Laven.
-
name-tests-test
: add--pytest-test-first
test convention.- #779 MR by @asottile.
Fixes
-
check-shebang-scripts-are-executable
: update windows instructions.- #774 MR by @mdeweerd.
- #770 issue by @mdeweerd.
-
check-toml
: use stdlibtomllib
when available.- #771 MR by @DanielNoord.
- #755 issue by @sognetic.
-
check-added-large-files
: don't run on non-filestages
.- #778 MR by @asottile.
- #777 issue by @skyj.
v4.2.0
: pre-commit-hooks v4.2.0
Features
-
name-tests-test
: updated display text.- #713 MR by @asottile.
-
check-docstring-first
: make output more parsable.- #748 MR by @asottile.
-
check-merge-conflict
: make output more parsable.- #748 MR by @asottile.
-
debug-statements
: make output more parsable.- #748 MR by @asottile.
Fixes
-
check-merge-conflict
: fix detection of======
conflict marker on windows.- #748 MR by @asottile.
Updating
- Drop python<3.7.
- #719 MR by @asottile.
- Changed default branch from
master
tomain
.- #744 MR by @asottile.
v4.1.0
: pre-commit-hooks v4.1.0
Features
-
debug-statements
: addpdbr
debugger.- #614 MR by @cansarigol.
-
detect-private-key
: add detection for additional key types. -
check-executables-have-shebangs
: improve messaging on windows.- #689 MR by @pujitm.
- #686 issue by @jmerdich.
-
check-added-large-files
: support--enforce-all
withgit-lfs
.- #674 MR by @amartani.
- #560 issue by @jeremy-coulon.
Fixes
-
check-case-conflict
: improve performance.- #626 MR by @guykisel.
- #625 issue by @guykisel.
-
forbid-new-submodules
: fix false-negatives forpre-push
.- #619 MR by @m-khvoinitsky.
- #609 issue by @m-khvoinitsky.
-
check-merge-conflict
: fix execution in git worktrees.- #662 MR by @errsyn.
- #638 issue by @daschuer.
Misc.
- Normalize case of hook names and descriptions.
- #671 MR by @dennisroche.
- #673 MR by @revolter.
v4.0.1
: pre-commit-hooks v4.0.1
Fixes
-
check-shebang-scripts-are-executable
fix entry point.- #602 issue by @Person-93.
- #603 MR by @scop.
v4.0.0
: pre-commit-hooks v4.0.0
Features
-
check-json
: report duplicate keys.- #558 MR by @AdityaKhursale.
- #554 issue by @adamchainz.
-
no-commit-to-branch
: addmain
to default blocked branches.- #565 MR by @ndevenish.
-
check-case-conflict
: check conflicts in directory names as well.- #575 MR by @slsyy.
- #70 issue by @andyjack.
-
check-vcs-permalinks
: forbid other branch names.- #582 MR by @jack1142.
- #581 issue by @jack1142.
-
check-shebang-scripts-are-executable
: new hook which ensures shebang'd scripts are executable.
Fixes
-
check-executables-have-shebangs
: Short circuit shebang lookup on windows. -
requirements-txt-fixer
: Fix comments which have indentation- #549 MR by @greshilov.
- #548 issue by @greshilov.
-
pretty-format-json
: write to stdout using UTF-8 encoding.- #571 MR by @jack1142.
- #570 issue by @jack1142.
- Use more inclusive language.
- #599 MR by @asottile.
Breaking changes
- Remove deprecated hooks:
flake8
,pyflakes
,autopep8-wrapper
.- #597 MR by @asottile.
v3.4.0
: pre-commit-hooks v3.4.0
Features
-
file-contents-sorter
: Add--unique
argument- #524 MR by @danielhoherd.
-
check-vcs-permalinks
: Add--additional-github-domain
option- #530 MR by @youngminz.
- New hook:
destroyed-symlinks
to detect unintentional symlink-breakages on windows.- #511 MR by @m-khvoinitsky.
v3.3.0
: pre-commit-hooks v3.3.0
Features
-
file-contents-sorter
: add--ignore-case
option for case-insensitive sorting -
check-added-large-files
: add--enforce-all
option to check non-added files as well- #519 MR 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
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.