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
|
|
@ -26,6 +26,14 @@ def cwd(path):
|
|||
os.chdir(original_cwd)
|
||||
|
||||
|
||||
def mkdirp(path):
|
||||
try:
|
||||
os.makedirs(path)
|
||||
except OSError:
|
||||
if not os.path.exists(path):
|
||||
raise
|
||||
|
||||
|
||||
def memoize_by_cwd(func):
|
||||
"""Memoize a function call based on os.getcwd()."""
|
||||
@functools.wraps(func)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue