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
|
|
@ -78,7 +78,8 @@ def _install_ruby(environment, version):
|
|||
environment.run('rbenv install {0}'.format(version))
|
||||
|
||||
|
||||
def install_environment(repo_cmd_runner, version='default',
|
||||
def install_environment(repo_cmd_runner,
|
||||
version='default',
|
||||
additional_dependencies=None):
|
||||
directory = helpers.environment_dir(ENVIRONMENT_DIR, version)
|
||||
with clean_path_on_failure(repo_cmd_runner.path(directory)):
|
||||
|
|
@ -94,8 +95,8 @@ def install_environment(repo_cmd_runner, version='default',
|
|||
)
|
||||
if additional_dependencies:
|
||||
ruby_env.run(
|
||||
'cd {prefix} && gem install --no-document ' + (' ').join(
|
||||
additional_dependencies)
|
||||
'cd {prefix} && gem install --no-document ' +
|
||||
' '.join(additional_dependencies)
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue