mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
make in_env part of the language api
This commit is contained in:
parent
bcf0230772
commit
ae34a962d7
23 changed files with 73 additions and 92 deletions
|
|
@ -44,7 +44,8 @@ def _norm_out(b):
|
|||
|
||||
|
||||
def _hook_run(hook, filenames, color):
|
||||
return languages[hook.language].run_hook(hook, filenames, color)
|
||||
with languages[hook.language].in_env(hook.prefix, hook.language_version):
|
||||
return languages[hook.language].run_hook(hook, filenames, color)
|
||||
|
||||
|
||||
def _get_hook_no_install(repo_config, store, hook_id):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue