mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-03-29 10:16:52 +00:00
don't need to blow away the space here
This commit is contained in:
parent
d06a515ce1
commit
c7ab197645
1 changed files with 1 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue