mirror of https://github.com/zulip/zulip.git
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:
parent
f3c6d91e69
commit
8637bdeb30
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue