mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-04-15 18:11:48 +04:00
Only show skipped messages in verbose mode
This commit is contained in:
parent
4f5cb99ff5
commit
12dde6d395
1 changed files with 21 additions and 19 deletions
|
|
@ -140,6 +140,7 @@ def _run_single_hook(
|
|||
filenames = classifier.filenames_for_hook(hook)
|
||||
|
||||
if hook.id in skips or hook.alias in skips:
|
||||
if verbose:
|
||||
output.write(
|
||||
_full_msg(
|
||||
start=hook.name,
|
||||
|
|
@ -154,6 +155,7 @@ def _run_single_hook(
|
|||
files_modified = False
|
||||
out = b''
|
||||
elif not filenames and not hook.always_run:
|
||||
if verbose:
|
||||
output.write(
|
||||
_full_msg(
|
||||
start=hook.name,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue