tools: Enhance output of run-mypy.

This removes the excessively verbose lists of files
to be tested, and flushes the output after every print
to update the user on the current status in real time.
This commit is contained in:
derAnfaenger 2017-10-20 13:06:47 +02:00 committed by Tim Abbott
parent 0e6ea0a439
commit 839bbf0db4

View file

@ -105,9 +105,8 @@ if args.quick:
# run mypy # run mypy
status = 0 status = 0
for repo, python_files in repo_python_files.items(): for repo, python_files in repo_python_files.items():
print("Running mypy for `{}`.".format(repo)) print("Running mypy for `{}`.".format(repo), flush=True)
if python_files: if python_files:
print(python_files)
result = subprocess.call([mypy_command] + extra_args + python_files) result = subprocess.call([mypy_command] + extra_args + python_files)
if result != 0: if result != 0:
status = result status = result