alter file with new line even if no other content is changed

This commit is contained in:
Barak Y. Reif 2019-09-28 21:59:41 +03:00
parent da2ea3f7a7
commit d4b544daf3
2 changed files with 4 additions and 4 deletions

View file

@ -17,7 +17,7 @@ from pre_commit_hooks.requirements_txt_fixer import Requirement
(b'bar\nfoo\n', PASS, b'bar\nfoo\n'),
(b'a\nc\nb\n', FAIL, b'a\nb\nc\n'),
(b'a\nc\nb', FAIL, b'a\nb\nc\n'),
(b'a\nb\nc', PASS, b'a\nb\nc'),
(b'a\nb\nc', FAIL, b'a\nb\nc\n'),
(
b'#comment1\nfoo\n#comment2\nbar\n',
FAIL,