mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Move the installer thing
This commit is contained in:
parent
95d9e29996
commit
8b0247e17f
4 changed files with 7 additions and 4 deletions
|
|
@ -3,8 +3,8 @@ import contextlib
|
|||
from plumbum import local
|
||||
from pre_commit import git
|
||||
|
||||
class RepoInstaller(object):
|
||||
|
||||
class RepoInstaller(object):
|
||||
def __init__(self, git_repo_path, sha):
|
||||
self.git_repo_path = git_repo_path
|
||||
self.sha = sha
|
||||
|
|
@ -28,6 +28,8 @@ class RepoInstaller(object):
|
|||
local['git']['checkout', self.sha]()
|
||||
|
||||
def install(self):
|
||||
# TODO: need to take in the config here and determine if we actually
|
||||
# need to run any installers (and what languages to install)
|
||||
with self.in_checkout():
|
||||
if local.path('setup.py').exists():
|
||||
local['virtualenv']['py_env']()
|
||||
Loading…
Add table
Add a link
Reference in a new issue