Adjust messaging slightly

This commit is contained in:
Anthony Sottile
2019-03-30 14:05:24 -07:00
parent 71a740d65d
commit 668e6415c0

View File

@@ -217,12 +217,13 @@ def _run_hooks(config, hooks, args, environ):
if retval and args.show_diff_on_failure and git.has_diff():
if args.all_files:
output.write_line(
'Pre-commit hook(s) made changes. '
'If you are seeing this message on CI,'
' reproduce locally with: pre-commit run --all-files',
'pre-commit hook(s) made changes.\n'
'If you are seeing this message in CI, '
'reproduce locally with: `pre-commit run --all-files`.\n'
'To run `pre-commit` as part of git workflow, use '
'`pre-commit install`.',
)
else:
output.write_line('All changes made by hooks:')
output.write_line('All changes made by hooks:')
subprocess.call(('git', '--no-pager', 'diff', '--no-ext-diff'))
return retval