Commit graph

12 commits

Author SHA1 Message Date
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
Anthony Sottile
a85df8027b remove unneeded gitignore lines
- coverage-html: coverage>=6.2 writes a .gitignore file
- mypy_cache: mypy>=0.770 writes a .gitignore file
- pytest_cache: pytest>=3.8.1 writes a .gitignore file
- venv: virtualenv>=20.0.21 writes a .gitignore file

Committed via https://github.com/asottile/all-repos
2022-03-13 19:55:30 -04:00
Ruairidh MacLeod
003e4c21e0 add initial dotnet support 2020-09-27 15:04:35 -07:00
Anthony Sottile
fa536a8693 mypy passes with check_untyped_defs 2020-01-12 09:27:04 -08:00
Anthony Sottile
5eedbfc2d5 Change ignored cache dir for pytest 3.4.0
Committed via https://github.com/asottile/all-repos
2018-02-01 11:15:30 -08:00
Chris Kuehl
a79cce61d4 gitignore: add .cache 2015-10-02 16:21:35 -07:00
Anthony Sottile
479eb51873 Implement Store. pre-commit now installs files to ~/.pre-commit 2014-05-02 14:56:47 -07:00
Anthony Sottile
2bfb85e52e Rebuild virtualenv on requirements change. 2014-04-12 23:25:49 -07:00
Anthony Sottile
1746a97e24 Better project structure 2014-04-12 15:56:18 -07:00
Ken Struys
27c341e2fb added basic run single hook implmentation 2014-03-13 23:05:02 -07:00
Anthony Sottile
2aa8821b70 Added pre-commit.py script 2014-03-13 09:07:55 -07:00
Anthony Sottile
7bb7f4a483 Initial commit. 2014-03-12 20:25:19 -07:00