Skip to content

Commit 8d10764

Browse files
committed
Show errorcode in run_mypy
1 parent 808528e commit 8d10764

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/run_mypy.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,9 @@ def check_no_unexpected_results(mypy_lines: Iterable[str]):
157157
for section, sdf in df.reset_index().groupby(args.groupby):
158158
print(f"\n\n[{section}]")
159159
for row in sdf.itertuples():
160-
print(f"{row.file}:{row.line}: {row.type}: {row.message}")
160+
print(
161+
f"{row.file}:{row.line}: {row.type} [{row.errorcode}]: {row.message}"
162+
)
161163
print()
162164
else:
163165
print(

0 commit comments

Comments
 (0)