Use mypy in daemon mode

This commit is contained in:
Kovid Goyal
2020-03-05 20:38:51 +05:30
parent 77e9460eea
commit 1e998b6a3f
6 changed files with 32 additions and 21 deletions

View File

@@ -71,7 +71,10 @@ def type_check():
generate_stub()
from kitty.options_stub import generate_stub
generate_stub()
os.execlp('mypy', 'mypy')
if 'CI' in os.environ:
os.execlp('mypy', 'mypy')
else:
os.execlp('dmypy', 'dmypy', 'run', '--', '--follow-imports=error')
def run_tests():