mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Merge branch 'master' of github.com:pre-commit/pre-commit
Conflicts: tests/git_test.py
This commit is contained in:
commit
3b0f03d0e0
11 changed files with 243 additions and 160 deletions
|
|
@ -54,7 +54,8 @@ class PreCommitProject(object):
|
|||
with self.in_checkout():
|
||||
if local.path('setup.py').exists():
|
||||
local['virtualenv']['py_env']()
|
||||
local['bash'][local['pip']['install', '.']]
|
||||
local['bash']['-c', 'source py_env/bin/activate && pip install .']()
|
||||
print local.cwd.getpath()
|
||||
|
||||
def create_repo_in_env(git_repo_path, sha):
|
||||
project = PreCommitProject(git_repo_path, sha)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue