mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-01 18:56:52 +00:00
Print file line stderr
This commit is contained in:
parent
93b7b66cda
commit
831d2a99ab
2 changed files with 8 additions and 14 deletions
|
|
@ -120,7 +120,10 @@ def main(argv=None): # type: (Optional[Sequence[str]]) -> int
|
|||
)
|
||||
|
||||
if contents != pretty_contents:
|
||||
print('File {} is not pretty-formatted'.format(json_file))
|
||||
print(
|
||||
'File {} is not pretty-formatted'.format(json_file),
|
||||
file=sys.stderr,
|
||||
)
|
||||
|
||||
if args.autofix:
|
||||
_autofix(json_file, pretty_contents)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue