mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-09 04:54:16 +00:00
Remove @entry decorator (and misc cleanup)
This commit is contained in:
parent
9bfa01da81
commit
2f1d2bbe5b
13 changed files with 25 additions and 88 deletions
|
|
@ -9,8 +9,8 @@ def test_fixes_trailing_whitespace(tmpdir):
|
|||
('foo.py', 'foo \nbar \n'),
|
||||
('bar.py', 'bar\t\nbaz\t\n'),
|
||||
):
|
||||
with open(filename, 'w') as f:
|
||||
f.write(contents) # pragma: no cover (python 2.6 coverage bug)
|
||||
with open(filename, 'w') as file_obj:
|
||||
file_obj.write(contents) # pragma: no cover (26 coverage bug)
|
||||
|
||||
ret = fix_trailing_whitespace(['foo.py', 'bar.py'])
|
||||
assert ret == 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue