Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 668e641

Browse files
committed
Adjust messaging slightly
1 parent 71a740d commit 668e641

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

pre_commit/commands/run.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -217,12 +217,13 @@ def _run_hooks(config, hooks, args, environ):
217217
if retval and args.show_diff_on_failure and git.has_diff():
218218
if args.all_files:
219219
output.write_line(
220-
'Pre-commit hook(s) made changes. '
221-
'If you are seeing this message on CI,'
222-
' reproduce locally with: pre-commit run --all-files',
220+
'pre-commit hook(s) made changes.\n'
221+
'If you are seeing this message in CI, '
222+
'reproduce locally with: `pre-commit run --all-files`.\n'
223+
'To run `pre-commit` as part of git workflow, use '
224+
'`pre-commit install`.',
223225
)
224-
else:
225-
output.write_line('All changes made by hooks:')
226+
output.write_line('All changes made by hooks:')
226227
subprocess.call(('git', '--no-pager', 'diff', '--no-ext-diff'))
227228
return retval
228229

0 commit comments

Comments
 (0)