mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
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:
parent
8a43a65557
commit
06b3d91da0
8 changed files with 37 additions and 9 deletions
|
|
@ -8,7 +8,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 system type is a noop."""
|
||||
raise AssertionError('Cannot install system repo.')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue