From 8637bdeb3099526f0120f2e3197e460f6d4bccf6 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Sun, 16 Dec 2018 21:49:17 -0800 Subject: [PATCH] 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. --- tools/run-mypy | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/run-mypy b/tools/run-mypy index c90789719c..dfb0392cae 100755 --- a/tools/run-mypy +++ b/tools/run-mypy @@ -83,6 +83,10 @@ mypy_args = extra_args + python_files + pyi_files if args.no_daemon: rc = subprocess.call([mypy_command] + mypy_args) 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) if rc != 0: