mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Fixups + make the tests work
This commit is contained in:
parent
0ee4c3efa7
commit
738c2ad7bd
4 changed files with 25 additions and 27 deletions
|
|
@ -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
|
||||
)
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
)
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue