mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Add python3.5, pypy3, and latest git to travis
This commit is contained in:
parent
d24a9374d2
commit
2df1dc9023
7 changed files with 48 additions and 5 deletions
|
|
@ -9,6 +9,7 @@ import stat
|
|||
import sys
|
||||
|
||||
from pre_commit.logging_handler import LoggingHandler
|
||||
from pre_commit.util import mkdirp
|
||||
from pre_commit.util import resource_filename
|
||||
|
||||
|
||||
|
|
@ -54,8 +55,7 @@ def install(runner, overwrite=False, hooks=False, hook_type='pre-commit'):
|
|||
hook_path = runner.get_hook_path(hook_type)
|
||||
legacy_path = hook_path + '.legacy'
|
||||
|
||||
if not os.path.exists(os.path.dirname(hook_path)):
|
||||
os.makedirs(os.path.dirname(hook_path))
|
||||
mkdirp(os.path.dirname(hook_path))
|
||||
|
||||
# If we have an existing hook, move it to pre-commit.legacy
|
||||
if (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue