mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-18 00:24:47 +04:00
Make formatting of the new code style compliant.
This commit is contained in:
parent
689f1203f7
commit
4c804052e0
1 changed files with 5 additions and 5 deletions
|
|
@ -223,12 +223,12 @@ def _run_single_hook(
|
|||
if retcode:
|
||||
_subtle_line(f'- exit code: {retcode}', use_color)
|
||||
if verbose and hook.description:
|
||||
description = hook.description
|
||||
if '\n' in hook.description:
|
||||
_subtle_line('- description: |', use_color)
|
||||
for l in hook.description.splitlines():
|
||||
_subtle_line(' ' + l, use_color)
|
||||
else:
|
||||
_subtle_line(f'- description: {hook.description}', use_color)
|
||||
description = '|'
|
||||
for line in hook.description.splitlines():
|
||||
description += '\n ' + line
|
||||
_subtle_line(f'- description: {description}', use_color)
|
||||
|
||||
# Print a message if failing due to file modifications
|
||||
if files_modified:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue