mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-02 02:56:52 +00:00
Flush stderr, and formatting
This commit is contained in:
parent
35c76c4f33
commit
27cd688c8e
2 changed files with 3 additions and 1 deletions
|
|
@ -124,6 +124,7 @@ def main(argv=None): # type: (Optional[Sequence[str]]) -> int
|
|||
'File {} is not pretty-formatted'.format(json_file),
|
||||
file=sys.stderr,
|
||||
)
|
||||
sys.stderr.flush()
|
||||
|
||||
if args.autofix:
|
||||
_autofix(json_file, pretty_contents)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue