mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-09 13:45:26 +02:00
Pass through python used for type check to the test code from before the env is sanitized
This commit is contained in:
@@ -66,7 +66,7 @@ def type_check() -> NoReturn:
|
||||
generate_stub()
|
||||
from kittens.tui.operations_stub import generate_stub # type: ignore
|
||||
generate_stub()
|
||||
py = shutil.which('python') or shutil.which('python3')
|
||||
py = os.environ.get('PYTHON_FOR_TYPE_CHECK') or shutil.which('python') or shutil.which('python3')
|
||||
os.execlp(py, py, '-m', 'mypy', '--pretty')
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user