Fixups + make the tests work

This commit is contained in:
Anthony Sottile 2015-11-20 13:52:20 -08:00
parent 0ee4c3efa7
commit 738c2ad7bd
4 changed files with 25 additions and 27 deletions

View file

@ -50,8 +50,7 @@ def install_environment(
node_env.run(
"cd '{prefix}' && npm install -g " +
' '.join(
[shell_escape(dep) for dep in
additional_dependencies]
shell_escape(dep) for dep in additional_dependencies
)
)

View file

@ -93,15 +93,14 @@ def install_environment(
if version != 'default':
_install_ruby(ruby_env, version)
ruby_env.run(
'cd {prefix} && gem build *.gemspec'
' && gem install --no-ri --no-rdoc *.gem',
'cd {prefix} && gem build *.gemspec && '
'gem install --no-ri --no-rdoc *.gem',
)
if additional_dependencies:
ruby_env.run(
'cd {prefix} && gem install --no-document ' +
'cd {prefix} && gem install --no-ri --no-rdoc ' +
' '.join(
shell_escape(dep) for dep in
additional_dependencies
shell_escape(dep) for dep in additional_dependencies
)
)

View file

@ -18,7 +18,6 @@ def install_environment(
def run_hook(repo_cmd_runner, hook, file_args):
return repo_cmd_runner.run(
['xargs', '-0', '{{prefix}}{0}'.format(hook['entry'])] + hook['args'],
# TODO: this is duplicated in pre_commit/languages/helpers.py
stdin=file_args_to_stdin(file_args),
retcode=None,
encoding=None,