Anthony Sottile
017fa5c0b8
Merge pull request #2665 from pre-commit/move-parse-version
...
move parse_version to pre_commit.clientlib
2023-01-01 17:51:11 -05:00
Anthony Sottile
5425c754a0
move parse_version to pre_commit.clientlib
2023-01-01 17:17:00 -05:00
Anthony Sottile
0a0754e44a
special rmtree is not needed for TemporaryDirectory in 3.8+
2023-01-01 17:12:28 -05:00
Anthony Sottile
848a73ed40
Merge pull request #2658 from pre-commit/remove-pre-commit-validate
...
remove pre-commit-validate-config and pre-commit-validate-manifest
2022-12-27 13:53:10 -05:00
Anthony Sottile
4a50859936
remove pre-commit-validate-config and pre-commit-validate-manifest
2022-12-27 13:05:30 -05:00
Anthony Sottile
d33df92add
Merge pull request #2602 from pre-commit/mypy-modules-as-protocols
...
use modules as protocols
2022-12-27 13:04:48 -05:00
Anthony Sottile
def3fa3929
Merge pull request #2657 from pre-commit/remove-sha-support
...
remove support for sha to specify rev
2022-12-27 12:13:26 -05:00
Anthony Sottile
12a979ea75
Merge pull request #2656 from pre-commit/remove-list-format
...
remove support for top-level list format
2022-12-27 12:09:42 -05:00
Anthony Sottile
40e69ce8e3
use modules as protocols
2022-12-27 11:46:11 -05:00
Anthony Sottile
ff3150d58a
remove support for sha to specify rev
2022-12-27 11:29:00 -05:00
Anthony Sottile
0024484f5b
remove support for top-level list format
2022-12-27 11:15:45 -05:00
Anthony Sottile
524a236072
drop python<3.8
2022-12-27 11:10:31 -05:00
Ruairidh MacLeod
c38e0c7ba8
dotnet: ignore nuget source during tool install
2022-12-21 14:26:13 -05:00
Ruairidh MacLeod
e904628830
fix dotnet hooks with prefixes
2022-12-21 13:35:19 -05:00
Lorenz Walthert
52948f610c
When R executable is an explicit path, we need to appene .exe on Windows
2022-12-12 13:21:55 -05:00
Anthony Sottile
6c524f7a55
fix rust platform detection on windows
2022-12-06 13:10:12 -05:00
Anthony Sottile
50c217964b
remove obsolete comment
2022-11-27 16:30:58 -05:00
marsha
4399c2dbc6
Add --no-ext-diff to git diff call
2022-11-10 20:09:56 -06:00
mishaschwartz
97ad4f89ec
ruby: update ruby-build to 20220710 to ensure that the correct openssl version is used
2022-11-07 18:39:24 -05:00
marsha
4bca29ee2c
Change intent_to_add_files from using git status to git diff
2022-11-02 18:59:36 -05:00
marsha
42102a1bfd
Remove expected_returncode from CalledProcessError
2022-10-30 15:31:45 -05:00
marsha
84b38f7b89
Change cmd_output_bs retcode arg to a boolean check
2022-10-30 14:49:42 -05:00
marsha
e703982de4
Change Rust to install environment with cargo add over toml
2022-10-28 21:32:52 -05:00
Matt Phillips
8ebb7ae2f5
add GIT_ASKPASS as a passthrough env var
...
documented via man gitcredentials, it is used to provide a script/input
for git to fetch creds in a no-tty usecase.
used among other things by jenkins to pass credentials down to git for
authentication.
1e3488a730/README.adoc (git-bindings)
9429e7d05d/src/main/java/jenkins/plugins/git/GitUsernamePasswordBinding.java (L130)
2022-10-27 15:55:31 -04:00
Anthony Sottile
7ac2dbeee0
Merge pull request #2555 from pre-commit/fix-tests
...
fix tests for submodules for CVE-2022-39253
2022-10-22 15:06:31 -07:00
Anthony Sottile
0fe7a0baa6
Merge pull request #2460 from lorenzwalthert/binary-additional-deps
...
Enforce binary installs also for dependencies in R
2022-10-22 11:28:13 -07:00
Anthony Sottile
bc96b0bcf6
fix tests for submodules for CVE-2022-39253
2022-10-22 09:34:43 -07:00
Jan Holthuis
eb469c756d
Rust as 1st class language
2022-10-10 20:05:36 -04:00
chrisRedwine
a95f488e71
extend warning if globs are used instead of regex to local hooks
2022-09-25 11:56:04 -05:00
Anthony Sottile
2405caa352
allow pre-commit run --files ... against unmerged files
2022-08-15 13:46:17 -04:00
Mark Korondi
587c6b97e7
respect aliases in SKIP when installing environments
2022-08-11 09:30:39 +02:00
Lorenz Walthert
a568f3c818
enforce binary installs also for dependencies of R packages
...
Similar problem seems to be found in https://github.com/r-lib/devtools/issues/1724
2022-07-12 22:47:19 +01:00
Anthony Sottile
db51d3009f
adjust relative --commit-msg-filename if in subdir
2022-07-12 14:08:57 -04:00
Anthony Sottile
d8b59300ce
remove imports from TYPE_CHECKING (py37+)
...
Committed via https://github.com/asottile/all-repos
2022-07-04 17:57:38 -04:00
Anthony Sottile
53643def07
remove unused --config options from commands which don't use it
2022-06-22 16:06:15 -07:00
Matt Whitaker
702ebf402c
Expose prepare-commit-msg arguments as environment vars
2022-06-11 14:25:55 -04:00
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
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
777ffdd692
deprecate pre-commit-validate-{config,manifest}
2022-04-24 19:08:47 -04:00
Jamie Alessio
392bc33466
Update ruby-build to v20220412
2022-04-17 07:12:48 -07:00
Anthony Sottile
07554e9525
add additional info to healthy-after-install check
2022-04-16 16:46:28 -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
Walluce Pinkham
9b3df4b90e
Handling multiple outputs from dotnet pack
2022-04-07 13:16:56 -04:00
Anthony Sottile
1722448c3b
fix python 2.7 repo: local hooks
2022-04-02 21:19:13 -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
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