Releases: pre-commit/pre-commit-hooks
Releases Β· pre-commit/pre-commit-hooks
pre-commit-hooks v5.0.0
Features
requirements-txt-fixer
: also removepkg_resources==...
.- #850 PR by @ericfrederich.
- #1030 issue by @ericfrederich.
check-illegal-windows-names
: new hook!- #1044 PR by @ericfrederich.
- #589 issue by @ericfrederich.
- #1049 PR by @Jeffrey-Lim.
pretty-format-json
: continue processing even if a file has a json error.
Fixes
Migrating
pre-commit-hooks v4.6.0
pre-commit-hooks v4.5.0
Features
requirements-txt-fixer
: also sortconstraints.txt
by default.- #857 PR by @lev-blit.
- #830 issue by @PLPeeters.
debug-statements
: addbpdb
debugger.
Fixes
file-contents-sorter
: fix sorting an empty file.- #944 PR by @RoelAdriaans.
- #935 issue by @paduszyk.
double-quote-string-fixer
: don't rewrite inside f-strings in 3.12+.- #973 PR by @asottile.
- #971 issue by @XuehaiPan.
Migrating
pre-commit-hooks v4.4.0
Features
- forbid-submodules: new hook which outright bans submodules.
- #815 PR by @asottile.
- #707 issue by @ChiefGokhlayeh.
pre-commit-hooks v4.3.0
Features
check-executables-have-shebangs
: usegit config core.fileMode
to determine if it should querygit
.- #730 PR by @Kurt-von-Laven.
name-tests-test
: add--pytest-test-first
test convention.
Fixes
check-shebang-scripts-are-executable
: update windows instructions.check-toml
: use stdlibtomllib
when available.- #771 PR by @DanielNoord.
- #755 issue by @sognetic.
check-added-large-files
: don't run on non-filestages
.
pre-commit-hooks v4.2.0
Features
name-tests-test
: updated display text.check-docstring-first
: make output more parsable.check-merge-conflict
: make output more parsable.debug-statements
: make output more parsable.
Fixes
Updating
pre-commit-hooks v4.1.0
Features
debug-statements
: addpdbr
debugger.- #614 PR by @cansarigol.
detect-private-key
: add detection for additional key types.check-executables-have-shebangs
: improve messaging on windows.check-added-large-files
: support--enforce-all
withgit-lfs
.- #674 PR by @amartani.
- #560 issue by @jeremy-coulon.
Fixes
check-case-conflict
: improve performance.forbid-new-submodules
: fix false-negatives forpre-push
.- #619 PR by @m-khvoinitsky.
- #609 issue by @m-khvoinitsky.
check-merge-conflict
: fix execution in git worktrees.
Misc.
- Normalize case of hook names and descriptions.
- #671 PR by @dennisroche.
- #673 PR by @revolter.
pre-commit-hooks v4.0.1
Fixes
check-shebang-scripts-are-executable
fix entry point.- #602 issue by @Person-93.
- #603 PR by @scop.
pre-commit-hooks v4.0.0
Features
check-json
: report duplicate keys.- #558 PR by @AdityaKhursale.
- #554 issue by @adamchainz.
no-commit-to-branch
: addmain
to default blocked branches.- #565 PR by @ndevenish.
check-case-conflict
: check conflicts in directory names as well.check-vcs-permalinks
: forbid other branch names.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 PR by @greshilov.
- #548 issue by @greshilov.
pretty-format-json
: write to stdout using UTF-8 encoding.- Use more inclusive language.
Breaking changes
pre-commit-hooks v3.4.0
Features
file-contents-sorter
: Add--unique
argument- #524 PR by @danielhoherd.
check-vcs-permalinks
: Add--additional-github-domain
option- #530 PR by @youngminz.
- New hook:
destroyed-symlinks
to detect unintentional symlink-breakages on windows.- #511 PR by @m-khvoinitsky.