pre-commit/tests/commands
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
..
__init__.py Move commands into their own files. 2014-06-13 19:52:14 -07:00
autoupdate_test.py perform autoupdate without Store contention 2023-04-29 15:32:20 -04:00
clean_test.py drop python 3.6 support 2022-01-18 18:44:20 -05:00
gc_test.py perform autoupdate without Store contention 2023-04-29 15:32:20 -04:00
hook_impl_test.py Add pre-rebase hook support 2023-03-11 15:17:42 -05:00
init_templatedir_test.py Change cmd_output_bs retcode arg to a boolean check 2022-10-30 14:49:42 -05:00
install_uninstall_test.py python 3.9+: use removeprefix 2023-12-09 16:04:25 -05:00
migrate_config_test.py deprecate python_venv language 2023-02-04 14:26:09 -05:00
run_test.py When run is called with -v, then show hook.description if available. 2024-04-25 09:10:44 +00:00
sample_config_test.py drop python 3.6 support 2022-01-18 18:44:20 -05:00
try_repo_test.py Improve hook duration timing 2023-10-13 16:40:30 +01:00
validate_config_test.py remove pre-commit-validate-config and pre-commit-validate-manifest 2022-12-27 13:05:30 -05:00
validate_manifest_test.py remove pre-commit-validate-config and pre-commit-validate-manifest 2022-12-27 13:05:30 -05:00