There was an error while loading. Please reload this page.
1 parent ea8fbf9 commit d6c0aa5Copy full SHA for d6c0aa5
2 files changed
pre_commit_hooks/pretty_format_json.py
@@ -129,7 +129,10 @@ def main(argv=None): # type: (Optional[Sequence[str]]) -> int
129
if args.autofix:
130
_autofix(json_file, pretty_contents)
131
else:
132
- print(get_diff(contents, pretty_contents, json_file))
+ print(
133
+ get_diff(contents, pretty_contents, json_file),
134
+ end='',
135
+ )
136
137
status = 1
138
except ValueError:
tests/pretty_format_json_test.py
@@ -130,7 +130,6 @@ def test_diffing_output(capsys):
+ "blah": null,
+ "foo": "bar"
}}
-
'''.format(a, b)
expected_err = 'File {} is not pretty-formatted\n'.format(resource_path)
0 commit comments