mypy: Provide a clear message when starting daemon.

Previously, when the mypy daemon was starting up, it was very unclear
from the linter context what was happening.
This commit is contained in:
Tim Abbott 2018-12-16 21:49:17 -08:00
parent f3c6d91e69
commit 8637bdeb30
1 changed files with 4 additions and 0 deletions

View File

@ -83,6 +83,10 @@ mypy_args = extra_args + python_files + pyi_files
if args.no_daemon: if args.no_daemon:
rc = subprocess.call([mypy_command] + mypy_args) rc = subprocess.call([mypy_command] + mypy_args)
else: else:
rc = subprocess.call([mypy_command, "status"], stdout=subprocess.PIPE)
if rc != 0:
print("Starting mypy daemon, this will take a minute...")
sys.stdout.flush()
rc = subprocess.call([mypy_command, 'run', '--'] + mypy_args) rc = subprocess.call([mypy_command, 'run', '--'] + mypy_args)
if rc != 0: if rc != 0: