Commit graph

243 commits

Author SHA1 Message Date
helly25
689f1203f7
When run is called with -v, then show hook.description if available.
When developers run the pre-commit, they don't always understand what to or where to find more information. The hook description field is already present and often used to provide more descriptive information. For brevity this is not shown in normal cases, but this PR changes the tool behavior to show the description in verbose mode (`-v`). So most users won't see any difference but this can easily be enabled for people who want it.

Alternatives considered:
* Always show the description: Some people may not like this though as it can be spammy.
* Provide a new field: Possible but seems to be just more work with description already present and not otherwise used.
* Show the `repo` link. This is at the wrong level and has a slightly different purpose. Though description can just be set to the same url where that is correct.
2024-04-25 09:10:44 +00:00
Anthony Sottile
7f15dc75ee python3.9+ 2023-10-28 14:20:37 -04:00
Anthony Sottile
18348f5d0d use distlib inside the zipapp docker image 2023-05-17 18:58:11 -04:00
Anthony Sottile
08b670ff9e swift is included in github actions 2023-05-13 16:37:02 -07:00
Anthony Sottile
9c2a01186b fix typo in testing/languages 2023-05-13 16:27:14 -04:00
Anthony Sottile
926071b6a7 make some files trigger all languages 2023-05-13 16:03:14 -04:00
Jamie Alessio
cfcb88364e Upgrade to ruby-build v20230330 2023-04-18 10:58:57 -07:00
Marcelo Galigniana
f39154f69f Add pre-rebase hook support 2023-03-11 15:17:42 -05:00
Anthony Sottile
e3e17a1617 make --hook-type and stages match 2023-03-11 14:26:14 -05:00
marsha
5ce4a549d3 prefer sys.platform over os.name when checking for windows OS 2023-03-03 22:13:07 -06:00
Anthony Sottile
9655158d93 test languages only when they are changed 2023-02-21 11:11:44 -05:00
Anthony Sottile
d23990cc8b use run_language for repository_test 2023-02-20 22:21:31 -05:00
Anthony Sottile
d3883ce7f7 move languages.all and languages.helpers out of languages 2023-02-20 18:03:45 -05:00
marsha
915b930a5d test dotnet directly 2023-02-07 21:47:26 -06:00
marsha
6804100701 test golang directly 2023-02-06 17:02:20 -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
Anthony Sottile
909dd0e8a1 test node directly 2023-01-31 21:13:11 -05:00
Anthony Sottile
2530913fad ensure languages are healthy after creation 2023-01-31 20:40:19 -05:00
Anthony Sottile
5b50acbd2c test ruby directly 2023-01-30 21:36:13 -05:00
Anthony Sottile
77b4ea38ca
Merge pull request #2729 from pre-commit/rust-tests
test rust directly
2023-01-29 19:00:09 -05:00
Anthony Sottile
2adca78c6f test rust directly 2023-01-29 18:27:10 -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
6e8051b9e6 speed up ruby tests by picking a prebuilt in 22.04 2023-01-28 18:36:35 -05:00
Jamie Alessio
14c38d18fc Upgrade to ruby-build v20221225 2023-01-21 11:05:13 -08:00
Anthony Sottile
50848aaca2
Merge pull request #2709 from pre-commit/test-lua
test lua directly
2023-01-18 00:12:28 -05:00
Anthony Sottile
f042540311 test lua directly 2023-01-17 23:43:31 -05:00
Anthony Sottile
7512e3b7e1 test r language directly 2023-01-17 23:25:00 -05:00
Anthony Sottile
043565d28a test dart directly 2023-01-17 18:44:14 -05:00
Anthony Sottile
d24055cb40 test perl language directly 2023-01-17 17:34:04 -05:00
Anthony Sottile
9a56f8dca0
Merge pull request #2705 from pre-commit/speed-up-r-tests
speed up R unit tests
2023-01-17 14:51:00 -05:00
Anthony Sottile
966c67a832 speed up R unit tests 2023-01-17 14:16:13 -05:00
Anthony Sottile
c36f03cd2e test swift language directly 2023-01-17 13:51:06 -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
taoufik07
9afd63948e Make Go a first class language 2023-01-13 12:42:57 -05:00
Anthony Sottile
8529a0c1d3 add pre_commit.yaml module 2023-01-02 18:42:34 -05:00
Anthony Sottile
cddaa0dddc r is installed by default on GHA 2022-12-29 23:48:34 -05:00
Anthony Sottile
887c5e1142 azure pipelines -> github actions 2022-12-29 22:18:31 -05:00
Anthony Sottile
40e69ce8e3 use modules as protocols 2022-12-27 11:46:11 -05:00
Ruairidh MacLeod
e904628830 fix dotnet hooks with prefixes 2022-12-21 13:35:19 -05:00
Anthony Sottile
b00c31cf9e use a newer version of ruby which builds cleanly 2022-12-12 12:22:39 -05:00
Anthony Sottile
0b45ecc8a4 remove python 2.x cross version tests 2022-12-06 17:36:57 -05:00
Anthony Sottile
46c64efd9d update .net framework target 2022-12-06 15:00:06 -05:00
Anthony Sottile
5becd50974 update swift for jammy 2022-12-06 13:06:23 -05: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
Matt Whitaker
702ebf402c Expose prepare-commit-msg arguments as environment vars 2022-06-11 14:25:55 -04:00
Gaige B. Paulsen
34e97023f4 force default branch name for tests 2022-05-14 18:40:37 -07:00
Anthony Sottile
3929fe4a63 upgrade CI to ubuntu-latest / windows-latest 2022-04-24 19:10:09 -04:00
Jamie Alessio
392bc33466 Update ruby-build to v20220412 2022-04-17 07:12:48 -07:00