pre-commit/tests
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
..
commands When run is called with -v, then show hook.description if available. 2024-04-25 09:10:44 +00:00
languages give docker a tty output when expecting color 2024-03-02 11:51:34 -05:00
meta_hooks drop python 3.6 support 2022-01-18 18:44:20 -05:00
__init__.py Initial commit. 2014-03-12 20:25:19 -07:00
all_languages_test.py move languages.all and languages.helpers out of languages 2023-02-20 18:03:45 -05:00
clientlib_test.py attempt minimum_pre_commit_version first when parsing configs 2023-12-09 15:34:16 -05:00
color_test.py drop python 3.6 support 2022-01-18 18:44:20 -05:00
conftest.py Change cmd_output_bs retcode arg to a boolean check 2022-10-30 14:49:42 -05:00
envcontext_test.py drop python 3.6 support 2022-01-18 18:44:20 -05:00
error_handler_test.py Remove expected_returncode from CalledProcessError 2022-10-30 15:31:45 -05:00
git_test.py Change cmd_output_bs retcode arg to a boolean check 2022-10-30 14:49:42 -05:00
lang_base_test.py Refactor target_concurrency tests 2023-09-10 08:39:19 -04:00
logging_handler_test.py drop python 3.6 support 2022-01-18 18:44:20 -05:00
main_test.py make --hook-type and stages match 2023-03-11 14:26:14 -05:00
output_test.py drop python 3.6 support 2022-01-18 18:44:20 -05:00
parse_shebang_test.py use sys.executable instead of echo.exe in parse_shebang 2023-10-09 16:49:30 -04:00
prefix_test.py drop python 3.6 support 2022-01-18 18:44:20 -05:00
repository_test.py attempt minimum_pre_commit_version first when parsing configs 2023-12-09 15:34:16 -05:00
staged_files_only_test.py staged_files_only can handle a crlf-only diff 2024-02-10 14:01:49 -05:00
store_test.py python 3.9+: use removeprefix 2023-12-09 16:04:25 -05:00
util_test.py fix trailing whitespace in CalledProcessError output 2023-02-21 12:42:09 -05:00
xargs_test.py Refactor target_concurrency tests 2023-09-10 08:39:19 -04:00