mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-10 21:34:18 +00:00
Remove dependency on plumbum
This commit is contained in:
parent
c9b6161fab
commit
713fab4bc7
12 changed files with 99 additions and 55 deletions
|
|
@ -1,10 +1,12 @@
|
|||
from plumbum import local
|
||||
from __future__ import absolute_import
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from pre_commit_hooks.trailing_whitespace_fixer import fix_trailing_whitespace
|
||||
from testing.util import cwd
|
||||
|
||||
|
||||
def test_fixes_trailing_whitespace(tmpdir):
|
||||
with local.cwd(tmpdir.strpath):
|
||||
with cwd(tmpdir.strpath):
|
||||
for filename, contents in (
|
||||
('foo.py', 'foo \nbar \n'),
|
||||
('bar.py', 'bar\t\nbaz\t\n'),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue