There was an error while loading. Please reload this page.
1 parent 0ff23d4 commit 93b7b66Copy full SHA for 93b7b66
2 files changed
pre_commit_hooks/pretty_format_json.py
@@ -60,7 +60,6 @@ def get_diff(source, target): # type: (str, str) -> str
60
source_lines = source.splitlines(True)
61
target_lines = target.splitlines(True)
62
diff = ''.join(difflib.ndiff(source_lines, target_lines))
63
- print(diff)
64
return diff
65
66
tests/pretty_format_json_test.py
@@ -126,21 +126,6 @@ def test_diffing_output(capsys):
126
+ "foo": "bar"
127
}
128
129
- {
130
-- "foo":
131
-- "bar",
132
-- "alist": [2, 34, 234],
133
-+ "alist": [
134
-+ 2,
135
-+ 34,
136
-+ 234
137
-+ ],
138
-- "blah": null
139
-+ "blah": null,
140
-? +
141
-+ "foo": "bar"
142
- }
143
-
144
145
'''
146
# output should include a line with the filepath, build it here
0 commit comments