mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 16:24:40 +04:00
Various cleanup.
This commit is contained in:
parent
bf912cfebb
commit
01b557c497
12 changed files with 85 additions and 37 deletions
|
|
@ -42,7 +42,12 @@ class PrefixedCommandRunner(object):
|
|||
|
||||
will run ['/tmp/foo/foo.sh', 'bar', 'baz']
|
||||
"""
|
||||
def __init__(self, prefix_dir, popen=subprocess.Popen, makedirs=os.makedirs):
|
||||
def __init__(
|
||||
self,
|
||||
prefix_dir,
|
||||
popen=subprocess.Popen,
|
||||
makedirs=os.makedirs
|
||||
):
|
||||
self.prefix_dir = prefix_dir.rstrip(os.sep) + os.sep
|
||||
self.__popen = popen
|
||||
self.__makedirs = makedirs
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue