Commit Graph

2226 Commits

Author SHA1 Message Date
Gaige B. Paulsen
a84136d070 Switch pty use to fix solaris
Use the child instead of parent fd when manipulating pty for color.
2022-05-14 09:15:03 +00:00
Anthony Sottile
3cdc6c9d81 Merge pull request #2387 from pre-commit/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2022-05-09 14:10:50 -07:00
pre-commit-ci[bot]
323fd0d188 [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/asottile/pyupgrade: v2.32.0 → v2.32.1](https://github.com/asottile/pyupgrade/compare/v2.32.0...v2.32.1)
2022-05-09 20:28:33 +00:00
Anthony Sottile
fd78116f5c Merge pull request #2384 from narpfel/gem-no-user-install
Force gem installation into `GEM_HOME`
2022-05-07 14:28:31 -07:00
Paul Gey
a54391e96f Force gem installation into GEM_HOME
When `--user-install` is set in the gemrc config file, `gem` ignores
`GEM_HOME`. `--no-user-install` prevents this behaviour.
2022-05-07 20:44:02 +02:00
Anthony Sottile
cc9d950601 v2.19.0 v2.19.0 2022-05-05 06:54:43 -07:00
Anthony Sottile
96bf685380 fix non-unique id 2022-05-04 21:22:24 -04:00
Anthony Sottile
1b8665571e Merge pull request #2375 from pre-commit/search-the-tracker
add search term required input to issue template
2022-05-04 18:21:39 -07:00
Anthony Sottile
af467017c2 add search term required input to issue template 2022-05-04 17:58:31 -07:00
Anthony Sottile
bec1728133 Merge pull request #2370 from pre-commit/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2022-05-02 16:22:55 -04:00
pre-commit-ci[bot]
81129cefa5 [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/asottile/reorder_python_imports: v3.0.1 → v3.1.0](https://github.com/asottile/reorder_python_imports/compare/v3.0.1...v3.1.0)
- [github.com/pre-commit/mirrors-mypy: v0.942 → v0.950](https://github.com/pre-commit/mirrors-mypy/compare/v0.942...v0.950)
2022-05-02 20:18:58 +00:00
Anthony Sottile
7f189260e6 Merge pull request #2362 from pre-commit/deprecate-separate-entry-points
deprecate pre-commit-validate-{config,manifest}
2022-04-24 20:03:35 -04:00
Anthony Sottile
3929fe4a63 upgrade CI to ubuntu-latest / windows-latest 2022-04-24 19:10:09 -04:00
Anthony Sottile
777ffdd692 deprecate pre-commit-validate-{config,manifest} 2022-04-24 19:08:47 -04:00
Anthony Sottile
e1ce4c0bf3 Merge pull request #2349 from pre-commit/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2022-04-18 16:24:09 -04:00
pre-commit-ci[bot]
18f1cdf470 [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/asottile/add-trailing-comma: v2.2.2 → v2.2.3](https://github.com/asottile/add-trailing-comma/compare/v2.2.2...v2.2.3)
2022-04-18 19:50:30 +00:00
Anthony Sottile
f7940112a2 Merge pull request #2342 from jalessio/upgrade-to-ruby-build-20220412
Update ruby-build to v20220412
2022-04-17 10:44:37 -04:00
Jamie Alessio
392bc33466 Update ruby-build to v20220412 2022-04-17 07:12:48 -07:00
Anthony Sottile
89a50ed64d Merge pull request #2348 from pre-commit/healthy-info
add additional info to healthy-after-install check
2022-04-16 17:16:19 -04:00
Anthony Sottile
07554e9525 add additional info to healthy-after-install check 2022-04-16 16:46:28 -04:00
Anthony Sottile
2562c7f796 Merge pull request #2345 from wwade/main
pre-push: fix stdin line splitting when <local ref> has whitespace
2022-04-14 18:17:56 -04:00
Wade Carpenter
feb0d34213 pre-push: fix stdin line splitting when <local ref> has whitespace
From the `pre-push.sample` file:

> Information about the commits which are being pushed is supplied as
> lines to the standard input in the form:
>
>   <local ref> <local sha1> <remote ref> <remote sha1>

When `<local ref>` is not simply a branch name, but a more general
ref (see git-rev-parse(1)), it could contain whitespace, and that
breaks the split() call that expected only 3 spaces in the line.

Changed to use `rsplit(maxsplit=3)` since only the <local ref> is
likely to have embedded whitespace.

Added a new test case for the same.
2022-04-14 14:27:46 -07:00
Anthony Sottile
f9473e756d Merge pull request #2343 from pre-commit/golang-1-18
fix tests for golang 1.18
2022-04-13 18:25:13 -04:00
Anthony Sottile
b952c99898 fix tests for golang 1.18 2022-04-13 17:52:55 -04:00
Anthony Sottile
7189f340a9 Merge pull request #2339 from pre-commit/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2022-04-11 20:01:17 -04:00
pre-commit-ci[bot]
e3ae0664bb [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/pre-commit/pre-commit-hooks: v4.1.0 → v4.2.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.1.0...v4.2.0)
- [github.com/asottile/pyupgrade: v2.31.1 → v2.32.0](https://github.com/asottile/pyupgrade/compare/v2.31.1...v2.32.0)
2022-04-11 20:54:45 +00:00
Anthony Sottile
ecd7363676 Merge pull request #2332 from WallucePinkham/main
Handling multiple outputs from dotnet pack
2022-04-07 14:13:54 -04:00
Walluce Pinkham
9b3df4b90e Handling multiple outputs from dotnet pack 2022-04-07 13:16:56 -04:00
Anthony Sottile
26a3e6f9ff Merge pull request #2329 from pre-commit/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2022-04-04 16:03:56 -04:00
pre-commit-ci[bot]
c8ce94b40e [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/asottile/setup-cfg-fmt: v1.20.0 → v1.20.1](https://github.com/asottile/setup-cfg-fmt/compare/v1.20.0...v1.20.1)
- [github.com/asottile/add-trailing-comma: v2.2.1 → v2.2.2](https://github.com/asottile/add-trailing-comma/compare/v2.2.1...v2.2.2)
2022-04-04 20:00:42 +00:00
Anthony Sottile
0276e25f71 v2.18.1 v2.18.1 2022-04-02 21:32:54 -04:00
Anthony Sottile
f5af0a9ff4 Merge pull request #2324 from pre-commit/local-hooks-py27
fix python 2.7 `repo: local` hooks
2022-04-02 21:31:34 -04:00
Anthony Sottile
1722448c3b fix python 2.7 repo: local hooks 2022-04-02 21:19:13 -04:00
Anthony Sottile
c5a39ae77e v2.18.0 v2.18.0 2022-04-02 19:36:45 -04:00
Anthony Sottile
3aa2ce89e8 Merge pull request #2323 from pre-commit/move-try-slightly
move patch discarding inside `try` for staged_files_only
2022-04-02 19:23:04 -04:00
Anthony Sottile
a138c85e64 move patch discarding inside try for staged_files_only
there's a rare race outlined in #2287
2022-04-02 16:24:57 -04:00
Anthony Sottile
7602abc3cf Merge pull request #2322 from pre-commit/default-install-hook-types
implement default_install_hook_types
2022-04-02 15:36:59 -04:00
Anthony Sottile
e11163d010 Merge pull request #2301 from jeff-m-sullivan/rscript-path
use Rscript path relative to $R_HOME/bin/...
2022-04-02 15:30:52 -04:00
Anthony Sottile
d65016042b Merge pull request #2252 from daschuer/worktree_fix
Use the correct .git path in case of worktrees.
2022-04-02 15:30:45 -04:00
Anthony Sottile
fd0177ae3a implement default_install_hook_types
this implements a configurable fallback for the default value of `pre-commit install`
2022-04-02 15:11:31 -04:00
Daniel Schürmann
ba132f0200 Split get_git_dir() into get_git_dir() and get_git_common_dir()
This fixes the conflicted state check when using work trees. #1972
2022-04-02 15:07:22 -04:00
Jeff Sullivan
764a0db68e use Rscript path relative to $R_HOME/bin/...
Co-authored-by: Lorenz Walthert <lorenz.walthert@icloud.com>
2022-04-02 14:22:29 -04:00
Anthony Sottile
934afb85a4 Merge pull request #2319 from jalessio/jamie/upgrade-rbenv-and-ruby-build
Update ruby-build to latest available (v20220324)
2022-03-31 14:35:15 -04:00
Jamie Alessio
9021fa15dd Update ruby-build to latest available 2022-03-31 14:05:30 -04:00
Anthony Sottile
b97bb1809f Merge pull request #2312 from mblayman/multiple-tags
Pick a tag if multiple tags exist on a SHA.
2022-03-31 11:13:45 -04:00
Matt Layman
e8b46c1b16 Pick a tag if multiple tags exist on a SHA.
Fixes #2311
2022-03-31 10:37:51 -04:00
Anthony Sottile
a522507020 Merge pull request #2315 from pre-commit/error-messages
include the configured value in the language_version / additional_dependencies error
2022-03-30 12:54:37 -04:00
Anthony Sottile
2188c0fd2c include the configured value in the language_version / additional_dependencies error 2022-03-30 11:14:00 -04:00
Anthony Sottile
db44ad3022 Merge pull request #2304 from pre-commit/all-repos_autofix_reorder-pre-commit-config
reorder pre-commit config
2022-03-25 15:01:02 -04:00
Anthony Sottile
3b98040623 fix pre-commit issues 2022-03-25 14:31:33 -04:00