mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-04 19:26:52 +00:00
alter file with new line even if no other content is changed
This commit is contained in:
parent
da2ea3f7a7
commit
d4b544daf3
2 changed files with 4 additions and 4 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue