pre-commit/pre_commit
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 python3.9+ 2023-10-28 14:20:37 -04:00
resources Upgrade to ruby-build v20230330 2023-04-18 10:58:57 -07:00
__init__.py Initial commit. 2014-03-12 20:25:19 -07:00
__main__.py drop python 3.6 support 2022-01-18 18:44:20 -05:00
all_languages.py Add haskell language support to pre-commit. 2023-07-22 16:28:48 -04:00
clientlib.py attempt minimum_pre_commit_version first when parsing configs 2023-12-09 15:34:16 -05:00
color.py drop python 3.6 support 2022-01-18 18:44:20 -05:00
constants.py make --hook-type and stages match 2023-03-11 14:26:14 -05:00
envcontext.py python3.9+ 2023-10-28 14:20:37 -04:00
error_handler.py python3.9+ 2023-10-28 14:20:37 -04:00
errors.py drop python 3.6 support 2022-01-18 18:44:20 -05:00
file_lock.py python3.9+ 2023-10-28 14:20:37 -04:00
git.py python3.9+ 2023-10-28 14:20:37 -04:00
hook.py python3.9+ 2023-10-28 14:20:37 -04:00
lang_base.py python3.9+ 2023-10-28 14:20:37 -04:00
logging_handler.py python3.9+ 2023-10-28 14:20:37 -04:00
main.py [pre-commit.ci] auto fixes from pre-commit.com hooks 2024-01-12 16:32:44 +00:00
output.py drop python 3.6 support 2022-01-18 18:44:20 -05:00
parse_shebang.py python3.9+ 2023-10-28 14:20:37 -04:00
prefix.py drop python 3.6 support 2022-01-18 18:44:20 -05:00
repository.py attempt minimum_pre_commit_version first when parsing configs 2023-12-09 15:34:16 -05:00
staged_files_only.py staged_files_only can handle a crlf-only diff 2024-02-10 14:01:49 -05:00
store.py python3.9+ 2023-10-28 14:20:37 -04:00
util.py Address deprecation warning in shutil.rmtree(onerror=...) 2023-12-09 14:51:01 -05:00
xargs.py python3.9+ 2023-10-28 14:20:37 -04:00
yaml.py add pre_commit.yaml module 2023-01-02 18:42:34 -05:00