earthpy
earthpy copied to clipboard
Update pre-commit to 2.20.0
This PR updates pre-commit from 2.15.0 to 2.20.0.
Changelog
2.20.0
===================
Features
- Expose `source` and `object-name` (positional args) of `prepare-commit-msg`
hook as `PRE_COMMIT_COMIT_MSG_SOURCE` and `PRE_COMMIT_COMMIT_OBJECT_NAME`.
- 2407 PR by M-Whitaker.
- 2406 issue by M-Whitaker.
Fixes
- Fix `language: ruby` installs when `--user-install` is set in gemrc.
- 2394 PR by narpfel.
- 2393 issue by narpfel.
- Adjust pty setup for solaris.
- 2390 PR by gaige.
- 2389 issue by gaige.
- Remove unused `--config` option from `gc`, `sample-config`,
`validate-config`, `validate-manifest` sub-commands.
- 2429 PR by asottile.
2.19.0
===================
Features
- Allow multiple outputs from `language: dotnet` hooks.
- 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-manifest` and
deprecate `pre-commit-validate-config` and `pre-commit-validate-manifest`.
- 2362 PR by asottile.
Fixes
- Fix `pre-push` when pushed ref contains spaces.
- 2345 PR by wwade.
- 2344 issue by wwade.
Updating
- Change `pre-commit-validate-config` / `pre-commit-validate-manifest` to
`pre-commit validate-config` / `pre-commit validate-manifest`.
- 2362 PR by asottile.
2.18.1
===================
Fixes
- Fix regression for `repo: local` hooks running `python<3.7`
- 2324 PR by asottile.
2.18.0
===================
Features
- Keep `GIT_HTTP_PROXY_AUTHMETHOD` in git environ.
- 2272 PR by VincentBerthier.
- 2271 issue by VincentBerthier.
- Support both `cs` and `coursier` executables for coursier hooks.
- 2293 PR by Holzhaus.
- Include more information in errors for `language_version` /
`additional_dependencies` for 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_types` which will be installed when
`--hook-types` is not specified in `pre-commit install`.
- 2322 PR by asottile.
Fixes
- Fix typo in help message for `--from-ref` and `--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_HOME` for 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 `master` branch to `main`.
- 2302 PR by asottile.
2.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: conda` to use `mamba` or `micromamba` via
`PRE_COMMIT_USE_MAMBA=1` or `PRE_COMMIT_USE_MICROMAMBA=1` respectively.
- 2204 issue by janjagusch.
- 2207 PR by xhochy.
- display `git --version` in error report.
- 2210 PR by asottile.
- add `language: lua` as a supported language.
- 2158 PR by mblayman.
Fixes
- temporarily add `setuptools` to the zipapp.
- 2122 issue by andreoliwa.
- a737d5f commit by asottile.
- use `go install` instead of `go get` for go 1.18+ support.
- 2161 PR by schmir.
- fix `language: r` with a local renv and `RENV_PROJECT` set.
- 2170 PR by lorenzwalthert.
- forbid overriding `entry` in `language: meta` hooks which breaks them.
- 2180 issue by DanKaplanSES.
- 2181 PR by asottile.
- always use `!/bin/sh` on windows for hook script.
- 2182 issue by hushigome-visco.
- 2187 PR by asottile.
2.16.0
===================
Features
- add warning for regexes containing `[\/]` or `[/\\]`.
- 2053 PR by radek-sprta.
- 2043 issue by asottile.
- move hook template back to `bash` resolving shebang-portability issues.
- 2065 PR by asottile.
- add support for `fail_fast` at the individual hook level.
- 2097 PR by colens3.
- 1143 issue by potiuk.
- allow passthrough of `GIT_CONFIG_KEY_*`, `GIT_CONFIG_VALUE_*`, and
`GIT_CONFIG_COUNT`.
- 2136 PR by emzeat.
Fixes
- fix pre-commit autoupdate for `core.useBuiltinFSMonitor=true` on 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(...)` with `raise SystemExit(...)` for portability.
- 2103 PR by asottile.
- 2104 PR by asottile.
Links
- PyPI: https://pypi.org/project/pre-commit
- Changelog: https://pyup.io/changelogs/pre-commit/
- Repo: https://github.com/pre-commit/pre-commit
Codecov Report
Merging #777 (18f498a) into main (33751d6) will not change coverage. The diff coverage is
n/a
.
@@ Coverage Diff @@
## main #777 +/- ##
=======================================
Coverage 93.49% 93.49%
=======================================
Files 26 26
Lines 1645 1645
=======================================
Hits 1538 1538
Misses 107 107
Flag | Coverage Δ | |
---|---|---|
unittests | 93.49% <ø> (ø) |
Flags with carried forward coverage won't be shown. Click here to find out more.
:mega: Codecov can now indicate which changes are the most critical in Pull Requests. Learn more
Closing this in favor of #812