mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2025-08-14 09:27:21 +08:00
don't need to blow away the space here
This commit is contained in:
@ -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:
|
||||
|
Reference in New Issue
Block a user