There was an error while loading. Please reload this page.
2 parents 2f1d4d1 + 7da7256 commit 0e851bdCopy full SHA for 0e851bd
1 file changed
pre_commit/repository.py
@@ -82,6 +82,12 @@ def _hook_install(hook: Hook) -> None:
82
lang.install_environment(
83
hook.prefix, hook.language_version, hook.additional_dependencies,
84
)
85
+ if not lang.healthy(hook.prefix, hook.language_version):
86
+ raise AssertionError(
87
+ f'BUG: expected environment for {hook.language} to be healthy() '
88
+ f'immediately after install, please open an issue describing '
89
+ f'your environment',
90
+ )
91
# Write our state to indicate we're installed
92
_write_state(hook.prefix, venv, _state(hook.additional_dependencies))
93
0 commit comments