pre-commit/testing/resources
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
..
arbitrary_bytes_repo Clean up calls to .encode() / .decode() 2020-01-12 10:46:33 -08:00
arg_per_line_hooks_repo Introduce .pre-commit-hooks.yaml as a replacement for hooks.yaml 2017-01-21 13:47:59 -08:00
exclude_types_repo add types_or 2020-11-02 17:25:10 +00:00
failing_hook_repo When run is called with -v, then show hook.description if available. 2024-04-25 09:10:44 +00:00
logfile_repo Adds support for 'log_file' in hook config 2017-05-08 10:54:04 +10:00
modified_file_returns_zero_repo add types_or 2020-11-02 17:25:10 +00:00
not_found_exe Introduce .pre-commit-hooks.yaml as a replacement for hooks.yaml 2017-01-21 13:47:59 -08:00
prints_cwd_repo Introduce .pre-commit-hooks.yaml as a replacement for hooks.yaml 2017-01-21 13:47:59 -08:00
python3_hooks_repo remove python 2.x cross version tests 2022-12-06 17:36:57 -05:00
python_hooks_repo drop python 3.6 support 2022-01-18 18:44:20 -05:00
script_hooks_repo add types_or 2020-11-02 17:25:10 +00:00
stdout_stderr_repo Some manual .format() -> f-strings 2020-01-12 13:39:53 -08:00
system_hook_with_spaces_repo Introduce .pre-commit-hooks.yaml as a replacement for hooks.yaml 2017-01-21 13:47:59 -08:00
types_or_repo add types_or 2020-11-02 17:25:10 +00:00
types_repo add types_or 2020-11-02 17:25:10 +00:00
img1.jpg Add staged_files_only context manager. 2014-04-05 19:35:35 -07:00
img2.jpg Add staged_files_only context manager. 2014-04-05 19:35:35 -07:00
img3.jpg Add staged_files_only context manager. 2014-04-05 19:35:35 -07:00