Update dependency pre-commit to v2.21.0
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| pre-commit | ==2.6.0 -> ==2.21.0 |
Release Notes
pre-commit/pre-commit (pre-commit)
v2.21.0
===================
Features
- Require new-enough virtualenv to prevent 3.10 breakage
- #2467 PR by @asottile.
- Respect aliases with
SKIPfor environment install. - Allow
pre-commit run --filesagainst unmerged paths.- #2484 PR by @asottile.
- Also apply regex warnings to
repo: localhooks.- #2524 PR by @chrisRedwine.
- #2521 issue by @asottile.
rustis now a "first class" language -- supportinglanguage_versionand installation when not present.- #2534 PR by @Holzhaus.
rnow uses more-reliable binary installation.- #2460 PR by @lorenzwalthert.
GIT_ALLOW_PROTOCOLis now passed through for git operations.- #2555 PR by @asottile.
GIT_ASKPASSis now passed through for git operations.- Remove
tomldependency by usingcargo adddirectly. - Support
dotnethooks which have dotted prefixes.
Fixes
- Properly adjust
--commit-msg-filenameif run from a sub directory.- #2459 PR by @asottile.
- Simplify
--intent-to-adddetection by usinggit diff. - Fix
R.exeselection on windows.- #2605 PR by @lorenzwalthert.
- #2599 issue by @SInginc.
- Skip default
nugetsource when installingdotnetpackages.
v2.20.0
===================
Features
- Expose
sourceandobject-name(positional args) ofprepare-commit-msghook asPRE_COMMIT_COMIT_MSG_SOURCEandPRE_COMMIT_COMMIT_OBJECT_NAME.- #2407 PR by @M-Whitaker.
- #2406 issue by @M-Whitaker.
Fixes
- Fix
language: rubyinstalls when--user-installis set in gemrc. - Adjust pty setup for solaris.
- Remove unused
--configoption fromgc,sample-config,validate-config,validate-manifestsub-commands.- #2429 PR by @asottile.
v2.19.0
===================
Features
- Allow multiple outputs from
language: dotnethooks.- #2332 PR by @WallucePinkham.
- Add more information to
healthy()failure.- #2348 PR by @asottile.
- Upgrade ruby-build.
- #2342 PR by @jalessio.
- Add
pre-commit validate-config/pre-commit validate-manifestand deprecatepre-commit-validate-configandpre-commit-validate-manifest.- #2362 PR by @asottile.
Fixes
Updating
- Change
pre-commit-validate-config/pre-commit-validate-manifesttopre-commit validate-config/pre-commit validate-manifest.- #2362 PR by @asottile.
v2.18.1
===================
Fixes
- Fix regression for
repo: localhooks runningpython<3.7- #2324 PR by @asottile.
v2.18.0
===================
Features
- Keep
GIT_HTTP_PROXY_AUTHMETHODin git environ.- #2272 PR by @VincentBerthier.
- #2271 issue by @VincentBerthier.
- Support both
csandcoursierexecutables for coursier hooks.- #2293 PR by @Holzhaus.
- Include more information in errors for
language_version/additional_dependenciesfor languages which do not support them.- #2315 PR by @asottile.
- Have autoupdate preferentially pick tags which look like versions when
there are multiple equivalent tags.
- #2312 PR by @mblayman.
- #2311 issue by @mblayman.
- Upgrade
ruby-build.- #2319 PR by @jalessio.
- Add top level
default_install_hook_typeswhich will be installed when--hook-typesis not specified inpre-commit install.- #2322 PR by @asottile.
Fixes
- Fix typo in help message for
--from-refand--to-ref.- #2266 PR by @leetrout.
- Prioritize binary builds for R dependencies.
- #2277 PR by @lorenzwalthert.
- Fix handling of git worktrees.
- #2252 PR by @daschuer.
- Fix handling of
$R_HOMEfor R hooks.- #2301 PR by @jeff-m-sullivan.
- #2300 issue by @jeff-m-sullivan.
- Fix a rare race condition in change stashing.
- #2323 PR by @asottile.
- #2287 issue by @ian-h-chamberlain.
Updating
- Remove python3.6 support. Note that pre-commit still supports running hooks
written in older versions, but pre-commit itself requires python 3.7+.
- #2215 PR by @asottile.
- pre-commit has migrated from the
masterbranch tomain.- #2302 PR by @asottile.
v2.17.0
===================
Features
- add warnings for regexes containing
[\\/].- #2151 issue by @sanjioh.
- #2154 PR by @kuviokelluja.
- upgrade supported ruby versions.
- #2205 PR by @jalessio.
- allow
language: condato usemambaormicromambaviaPRE_COMMIT_USE_MAMBA=1orPRE_COMMIT_USE_MICROMAMBA=1respectively.- #2204 issue by @janjagusch.
- #2207 PR by @xhochy.
- display
git --versionin error report.- #2210 PR by @asottile.
- add
language: luaas a supported language.- #2158 PR by @mblayman.
Fixes
- temporarily add
setuptoolsto the zipapp.- #2122 issue by @andreoliwa.
a737d5fcommit by @asottile.
- use
go installinstead ofgo getfor go 1.18+ support. - fix
language: rwith a local renv andRENV_PROJECTset.- #2170 PR by @lorenzwalthert.
- forbid overriding
entryinlanguage: metahooks which breaks them.- #2180 issue by @DanKaplanSES.
- #2181 PR by @asottile.
- always use
#!/bin/shon windows for hook script.- #2182 issue by @hushigome-visco.
- #2187 PR by @asottile.
v2.16.0
===================
Features
- add warning for regexes containing
[\/]or[/\\].- #2053 PR by @radek-sprta.
- #2043 issue by @asottile.
- move hook template back to
bashresolving shebang-portability issues.- #2065 PR by @asottile.
- add support for
fail_fastat the individual hook level. - allow passthrough of
GIT_CONFIG_KEY_*,GIT_CONFIG_VALUE_*, andGIT_CONFIG_COUNT.
Fixes
- fix pre-commit autoupdate for
core.useBuiltinFSMonitor=trueon windows.- #2047 PR by @asottile.
- #2046 issue by @lcnittl.
- fix temporary file stashing with for
submodule.recurse=1.- #2071 PR by @asottile.
- #2063 issue by @a666.
- ban broken importlib-resources versions.
- #2098 PR by @asottile.
- replace
exit(...)withraise SystemExit(...)for portability.- #2103 PR by @asottile.
- #2104 PR by @asottile.
v2.15.0
===================
Features
- add support for hooks written in
dart.- #2027 PR by @asottile.
- add support for
post-rewritehooks.
Fixes
- fix
check-useless-excludeswith exclude matching broken symlink.- #2029 PR by @asottile.
- #2019 issue by @pkoch.
- eliminate duplicate mutable sha warning messages for
pre-commit autoupdate.- #2030 PR by @asottile.
- #2010 issue by @graingert.
v2.14.1
===================
Fixes
- fix force-push of disparate histories using git>=2.28.
- #2005 PR by @asottile.
- #2002 issue by @bogusfocused.
- fix
check-useless-excludesandcheck-hooks-applymatching non-root.pre-commit-config.yaml.- #2026 PR by @asottile.
- pre-commit-ci/issues#84 issue by @billsioros.
v2.14.0
===================
Features
- During
pre-pushhooks, expose local branch asPRE_COMMIT_LOCAL_BRANCH.- #1947 PR by @FlorentClarret.
- #1410 issue by @MaicoTimmerman.
- Improve container id detection for docker-beside-docker with custom hostname.
- #1919 PR by @adarnimrod.
- #1918 issue by @adarnimrod.
Fixes
- Read legacy hooks in an encoding-agnostic way.
- #1943 PR by @asottile.
- #1942 issue by @sbienkow-ninja.
- Fix execution of docker hooks for docker-in-docker.
- #1997 PR by @asottile.
- #1978 issue by @robin-moss.
v2.13.0
===================
Features
- Setting
SKIP=...skips installation as well.- #1875 PR by @asottile.
- pre-commit-ci/issues#53 issue by @TylerYep.
- Attempt to mount from host with docker-in-docker.
- Enable
repo: localforrhooks.- #1878 PR by @lorenzwalthert.
- Upgrade
ruby-buildandrbenv.- #1913 PR by @jalessio.
Fixes
- Better detect
rpackages.- #1898 PR by @lorenzwalthert.
- Avoid warnings with mismatched
renvversions.- #1841 PR by @lorenzwalthert.
- Reproducibly produce ruby tar resources.
- #1915 PR by @asottile.
v2.12.1
===================
Fixes
- Fix race condition when stashing files in multiple parallel invocations
- #1881 PR by @adamchainz.
- #1880 issue by @adamchainz.
v2.12.0
===================
Features
- Upgrade rbenv.
- #1854 PR by @asottile.
- #1848 issue by @sirosen.
Fixes
- Give command length a little more room when running batch files on windows
so underlying commands can expand further.
- #1864 PR by @asottile.
- pre-commit/mirrors-prettier#7 issue by @DeltaXWizard.
- Fix permissions of root folder in ruby archives.
- #1868 PR by @asottile.
v2.11.1
===================
Fixes
- Fix r hooks when hook repo is a package
- #1831 PR by @lorenzwalthert.
v2.11.0
===================
Features
- Improve warning for mutable ref.
- #1809 PR by @JamMarHer.
- Add support for
post-mergehook. - Add
ras a supported hook language.- #1799 PR by @lorenzwalthert.
Fixes
- Fix
pre-commit installonsubst/ network drives on windows.- #1814 PR by @asottile.
- #1802 issue by @goroderickgo.
- Fix installation of
localgolang repositories for go 1.16.- #1818 PR by @rafikdraoui.
- #1815 issue by @rafikdraoui.
v2.10.1
===================
Fixes
- Fix
language: golangrepositories containing recursive submodules- #1788 issue by @gaurav517.
- #1789 PR by @paulhfischer.
v2.10.0
===================
Features
- Allow
cias a top-level map for configuration for https://pre-commit.ci- #1735 PR by @asottile.
- Add warning for mutable
revin configuration- #1715 PR by @paulhfischer.
- #974 issue by @asottile.
- Add warning for
/*in top-levelfiles/excluderegexes- #1750 PR by @paulhfischer.
- #1702 issue by @asottile.
- Expose
PRE_COMMIT_REMOTE_BRANCHenvironment variable duringpre-pushhooks- #1770 PR by @surafelabebe.
- Produce error message for
language/language_versionfor non-installable languages- #1771 PR by @asottile.
Fixes
- Fix execution in worktrees in subdirectories of bare repositories
- #1778 PR by @asottile.
- #1777 issue by @s0undt3ch.
v2.9.3
==================
Fixes
- Fix crash on cygwin mismatch check outside of a git directory
- #1721 PR by @asottile.
- #1720 issue by @chronoB.
- Fix cleanup code on docker volumes for go
- Fix working directory detection on SUBST drives on windows
- #1727 PR by @mrogaski.
- #1610 issue by @jcameron73.
v2.9.2
==================
Fixes
- Fix default value for
types_orsosymlinkanddirectorycan be matched- #1716 PR by @asottile.
- #1718 issue by @CodeBleu.
v2.9.1
==================
Fixes
- Improve error message for "hook goes missing"
- #1709 PR by @paulhfischer.
- #1708 issue by @theod07.
- Add warning for
/*infiles/excluderegexes- #1707 PR by @paulhfischer.
- #1702 issue by @asottile.
- Fix
healthy()check forlanguage: pythonon windows when the base executable has non-ascii characters.- #1713 PR by @asottile.
- #1711 issue by @Najiva.
v2.9.0
==================
Features
- Add
types_orwhich allows matching multiple disparatetypesin a hook- #1677 by @MarcoGorelli.
- #607 by @asottile.
- Add Github Sponsors / Open Collective links
- https://github.com/sponsors/asottile
- https://opencollective.com/pre-commit
Fixes
- Improve cleanup for
language: dotnet - Fix "xargs" when running windows batch files
- #1686 PR by @asottile.
- #1604 issue by @apietrzak.
- #1604 issue by @ufwtlsb.
- Fix conflict with external
rbenvandlanguage_version: default- #1700 PR by @asottile.
- #1699 issue by @abuxton.
- Improve performance of
git status/git diffcommands by ignoring submodules
v2.8.2
==================
Fixes
- Fix installation of ruby hooks with
language_version: default- #1671 issue by @aerickson.
- #1672 PR by @asottile.
v2.8.1
==================
Fixes
- Allow default
language_versionofsystemwhen the homedir is/- #1669 PR by @asottile.
v2.8.0
==================
Features
- Update
rbenv/ruby-build- #1612 issue by @tdeo.
- #1614 PR by @asottile.
- Update
sample-configversions- #1611 PR by @mcsitter.
- Add new language:
dotnet - Add
--negateoption tolanguage: pygrephooks- #1643 PR by @MarcoGorelli.
- Add zipapp support
- #1616 PR by @asottile.
- Run pre-commit through https://pre-commit.ci
- #1662 PR by @asottile.
- Add new language:
coursier(a jvm-based package manager)- #1633 PR by @JosephMoniz.
- Exit with distinct codes: 1 (user error), 3 (unexpected error), 130 (^C)
Fixes
- Improve
healthy()check forlanguage: node+language_version: systemhooks when the system executable goes missing.- pre-commit/action#45 issue by @KOliver94.
- #1589 issue by @asottile.
- #1590 PR by @asottile.
- Fix excess whitespace in error log traceback
- #1592 PR by @asottile.
- Fix posixlike shebang invocations with shim executables of the git hook
script on windows.
- #1593 issue by @Celeborn2BeAlive.
- #1595 PR by @Celeborn2BeAlive.
- Remove hard-coded
C:\PythonXX\python.exepath on windows as it caused confusion (andvirtualenvcan sometimes do better)- #1599 PR by @asottile.
- Fix
language: rubyhooks when--format-executableis present in a gemrc- issue by
Rainbow Tux(discord). - #1603 PR by @asottile.
- issue by
- Move
cygwin/win32mismatch error earlier to catch msys2 mismatches- #1605 issue by @danyeaw.
- #1606 PR by @asottile.
- Remove
-pworkaround for oldvirtualenv- #1617 PR by @asottile.
- Fix
language: nodeinstallations to not symlink outside of the environment- pre-commit-ci/issues#2 issue by @DanielJSottile.
- #1667 PR by @asottile.
- Don't identify shim executables as valid
systemfor defaultinglanguage_versionforlanguage: node/language: ruby- #1658 issue by @adithyabsk.
- #1668 PR by @asottile.
v2.7.1
==================
Fixes
- Improve performance of docker hooks by removing slow
pscall- #1572 PR by @rkm.
- #1569 issue by @asottile.
- Fix un-
healthy()invalidation followed by install being reported as un-healthy().- #1576 PR by @asottile.
- #1575 issue by @jab.
- Fix rare file race condition on windows with
os.replace()- #1577 PR by @asottile.
v2.7.0
==================
Features
- Produce error message if an environment is immediately unhealthy
- #1535 PR by @asottile.
- Add --no-allow-missing-config option to init-templatedir
- #1539 PR by @singergr.
- Add warning for old list-style configuration
- #1544 PR by @asottile.
- Allow pre-commit to succeed on a readonly store.
- #1570 PR by @asottile.
- #1536 issue by @asottile.
Fixes
- Fix error messaging when the store directory is readonly
- #1546 PR by @asottile.
- #1536 issue by @asottile.
- Improve
diffperformance with many hooks- #1566 PR by @jhenkens.
- #1564 issue by @jhenkens.
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
- [ ] If you want to rebase/retry this PR, check this box
This PR was generated by Mend Renovate. View the repository job log.