diff --git a/pre_commit_hooks/pretty_format_json.py b/pre_commit_hooks/pretty_format_json.py index 1058e21..a1dccc0 100644 --- a/pre_commit_hooks/pretty_format_json.py +++ b/pre_commit_hooks/pretty_format_json.py @@ -24,6 +24,7 @@ def _get_pretty_format(contents, indent, sort_keys=True, top_keys=[]): indent=indent ) + "\n" # dumps don't end with a newline + def _autofix(filename, new_contents): print("Fixing file {0}".format(filename)) with open(filename, 'w') as f: