Commit Graph

1020 Commits

Author SHA1 Message Date
Anthony Sottile
d3883ce7f7 move languages.all and languages.helpers out of languages 2023-02-20 18:03:45 -05:00
marsha
8db5aaf4f3 future-proof dotnet build command
see https://github.com/dotnet/sdk/issues/30624#issuecomment-1435457318
2023-02-17 21:34:24 -06:00
marsha
915b930a5d test dotnet directly 2023-02-07 21:47:26 -06:00
Anthony Sottile
0afb95ccca test docker and docker_image directly 2023-02-04 17:22:06 -05:00
Anthony Sottile
0c1267b214 deprecate python_venv language 2023-02-04 14:26:09 -05:00
Adam Johnson
7783a3e63a Add --no-textconv to git diff calls 2023-02-03 15:56:11 +00:00
Anthony Sottile
7260d24d0f Revert "also ignore Gemfile in project"
This reverts commit f4bd44996c.
2023-02-01 18:17:24 -05:00
Anthony Sottile
420902f67c fix r local hooks
`language: r` acts more like `language: script` so we have to *not* append
the prefix when run with `repo: local`
2023-01-29 17:27:42 -05:00
Anthony Sottile
f4bd44996c also ignore Gemfile in project
this starts failing with ruby 3.2.0
2023-01-28 16:44:44 -05:00
Anthony Sottile
83e05e607e ensure coursier hooks are available offline after install 2023-01-25 14:03:39 -05:00
Anthony Sottile
bff5e0e738 introduce install state v2 to replace v1
the v1 state is unnecessary since new repos are created for new additional_dependencies
2023-01-23 19:58:48 -05:00
Jamie Alessio
14c38d18fc Upgrade to ruby-build v20221225 2023-01-21 11:05:13 -08:00
Anthony Sottile
966c67a832 speed up R unit tests 2023-01-17 14:16:13 -05:00
Anthony Sottile
f1b5f66374 test conda language directly 2023-01-17 13:05:49 -05:00
Anthony Sottile
70bfd76ced coursier: additional_dependencies support 2023-01-17 09:59:04 -05:00
Anthony Sottile
628c876b2d adjust the run_hook api to no longer take Hook 2023-01-16 16:34:01 -05:00
Anthony Sottile
ae34a962d7 make in_env part of the language api 2023-01-16 15:36:29 -05:00
Anthony Sottile
37685a7f42 the local repo no longer needs to be a git repo 2023-01-15 09:56:30 -05:00
taoufik07
9afd63948e Make Go a first class language 2023-01-13 12:42:57 -05:00
Anthony Sottile
619f2bf5a9 eagerly catch invalid yaml in migrate-config 2023-01-09 12:31:05 -05:00
taoufik07
bf1a1fa5fd Fix command normalization when a custom env is passed 2023-01-06 09:27:49 -05:00
Anthony Sottile
0dbc154380 Merge pull request #2672 from taoufik07/remove_gopath_special_build
Remove `GOPATH` special build
2023-01-02 19:32:08 -05:00
Anthony Sottile
83e64e2071 Merge pull request #2673 from pre-commit/split-util
add pre_commit.yaml module
2023-01-02 19:15:57 -05:00
taoufik07
60a42e9419 Remove GOPATH special build 2023-01-02 18:53:14 -05:00
Anthony Sottile
8529a0c1d3 add pre_commit.yaml module 2023-01-02 18:42:34 -05:00
Anthony Sottile
990643c1e0 Revert "simplify install state" 2023-01-02 18:39:42 -05:00
Anthony Sottile
0920cb33ee simplify install state
the additional bookkeeping has been unnecessary since b827694520

unfortunately this will cause a rebuild of all hooks in order to be
forward/backward compatible -- shrugs
2023-01-02 16:00:27 -05:00
Anthony Sottile
05c8911363 simplify environment_dir 2023-01-01 21:11:56 -05:00
Anthony Sottile
d05b7888ab move clean_path_on_failure out of each hook install 2023-01-01 20:04:58 -05:00
Anthony Sottile
0224be8194 Merge pull request #2667 from pre-commit/env-dir-always-non-null
remove None overload for environment_dir
2023-01-01 19:52:48 -05:00
Anthony Sottile
f0baffb01f remove None overload for environment_dir 2023-01-01 19:20:40 -05:00
Anthony Sottile
8e57e8075d avoid using hook.src in R language
this wasn't meant to be read -- hook.prefix works fine for local too
2023-01-01 19:02:20 -05:00
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