mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2025-08-14 09:27:21 +08:00
Print file line stderr
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user