There was an error while loading. Please reload this page.
1 parent 95d9e29 commit 8b0247eCopy full SHA for 8b0247e
4 files changed
pre_commit/installer/__init__.py
pre_commit/installer/repo_installer.py pre_commit/repo_installer.pypre_commit/installer/repo_installer.py renamed to pre_commit/repo_installer.py
@@ -3,8 +3,8 @@
3
from plumbum import local
4
from pre_commit import git
5
6
-class RepoInstaller(object):
7
+class RepoInstaller(object):
8
def __init__(self, git_repo_path, sha):
9
self.git_repo_path = git_repo_path
10
self.sha = sha
@@ -28,6 +28,8 @@ def create(self):
28
local['git']['checkout', self.sha]()
29
30
def install(self):
31
+ # TODO: need to take in the config here and determine if we actually
32
+ # need to run any installers (and what languages to install)
33
with self.in_checkout():
34
if local.path('setup.py').exists():
35
local['virtualenv']['py_env']()
tests/installer/__init__.py
tests/installer/repo_installer_test.py tests/repo_installer_test.pytests/installer/repo_installer_test.py renamed to tests/repo_installer_test.py
@@ -1,12 +1,13 @@
1
+import os
2
+
import jsonschema
import pytest
-import os
import pre_commit.constants as C
from pre_commit.clientlib.validate_config import CONFIG_JSON_SCHEMA
-from pre_commit.installer.repo_installer import create_repo_in_env
-from pre_commit.installer.repo_installer import install_pre_commit
+from pre_commit.repo_installer import create_repo_in_env
+from pre_commit.repo_installer import install_pre_commit
11
12
13
def get_sha(git_repo):
0 commit comments