mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Also check the ssl module for virtualenv health.
This commit is contained in:
parent
773a817f7f
commit
b907c02f05
1 changed files with 2 additions and 1 deletions
|
|
@ -86,7 +86,8 @@ def get_default_version():
|
||||||
def healthy(repo_cmd_runner, language_version):
|
def healthy(repo_cmd_runner, language_version):
|
||||||
with in_env(repo_cmd_runner, language_version):
|
with in_env(repo_cmd_runner, language_version):
|
||||||
retcode, _, _ = cmd_output(
|
retcode, _, _ = cmd_output(
|
||||||
'python', '-c', 'import datetime, io, os, weakref', retcode=None,
|
'python', '-c', 'import datetime, io, os, ssl, weakref',
|
||||||
|
retcode=None,
|
||||||
)
|
)
|
||||||
return retcode == 0
|
return retcode == 0
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue