Skip to content

Commit 839bbf0

Browse files
roberthoenigtimabbott
authored andcommitted
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.
1 parent 0e6ea0a commit 839bbf0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tools/run-mypy

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,8 @@ if args.quick:
105105
# run mypy
106106
status = 0
107107
for repo, python_files in repo_python_files.items():
108-
print("Running mypy for `{}`.".format(repo))
108+
print("Running mypy for `{}`.".format(repo), flush=True)
109109
if python_files:
110-
print(python_files)
111110
result = subprocess.call([mypy_command] + extra_args + python_files)
112111
if result != 0:
113112
status = result

0 commit comments

Comments
 (0)