pre-commit/pre_commit/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.py python3.9+ 2023-10-28 14:20:37 -04:00
clean.py drop python 3.6 support 2022-01-18 18:44:20 -05:00
gc.py drop python 3.6 support 2022-01-18 18:44:20 -05:00
hook_impl.py python3.9+ 2023-10-28 14:20:37 -04:00
init_templatedir.py implement default_install_hook_types 2022-04-02 15:11:31 -04:00
install_uninstall.py shlex.join is always available in 3.8+ 2023-07-01 17:22:42 -04:00
migrate_config.py deprecate python_venv language 2023-02-04 14:26:09 -05:00
run.py When run is called with -v, then show hook.description if available. 2024-04-25 09:10:44 +00:00
sample_config.py remove obsolete comment 2022-11-27 16:30:58 -05:00
try_repo.py add pre_commit.yaml module 2023-01-02 18:42:34 -05:00
validate_config.py python3.9+ 2023-10-28 14:20:37 -04:00
validate_manifest.py python3.9+ 2023-10-28 14:20:37 -04:00