Added the additional_dependencies config parameter

Added the ability to specify additional dependencies to be installed in
the pre-commit environment. Fixed broken tests.
This commit is contained in:
Tobias Macey
2015-11-19 12:29:41 -05:00
parent 8a43a65557
commit 06b3d91da0
8 changed files with 37 additions and 9 deletions

View File

@@ -6,7 +6,8 @@ from pre_commit.languages.helpers import file_args_to_stdin
ENVIRONMENT_DIR = None
def install_environment(repo_cmd_runner, version='default'):
def install_environment(repo_cmd_runner, version='default',
additional_dependencies=None):
"""Installation for script type is a noop."""
raise AssertionError('Cannot install script repo.')