mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Reformatted method signatures, fixed typos
This commit is contained in:
parent
06b3d91da0
commit
3726f07a3f
7 changed files with 17 additions and 11 deletions
|
|
@ -42,7 +42,8 @@ def norm_version(version):
|
|||
return version
|
||||
|
||||
|
||||
def install_environment(repo_cmd_runner, version='default',
|
||||
def install_environment(repo_cmd_runner,
|
||||
version='default',
|
||||
additional_dependencies=None):
|
||||
assert repo_cmd_runner.exists('setup.py')
|
||||
directory = helpers.environment_dir(ENVIRONMENT_DIR, version)
|
||||
|
|
@ -59,7 +60,7 @@ def install_environment(repo_cmd_runner, version='default',
|
|||
with in_env(repo_cmd_runner, version) as env:
|
||||
env.run("cd '{prefix}' && pip install .")
|
||||
if additional_dependencies:
|
||||
env.run("cd '{prefix}' && pip install -U" +
|
||||
env.run("cd '{prefix}' && pip install " +
|
||||
(' ').join(additional_dependencies))
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue