We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ddbc65 commit 9e7045bCopy full SHA for 9e7045b
src/pytest_mypy.py
@@ -76,7 +76,8 @@ def pytest_runtestloop(session):
76
else:
77
item.mypy_errors.append(error)
78
if any(unmatched_lines):
79
- terminal.write_line('\n'.join(unmatched_lines), red=True)
+ color = {"red": True} if status != 0 else {"green": True}
80
+ terminal.write_line('\n'.join(unmatched_lines), **color)
81
82
if stderr:
83
terminal.write_line(stderr, red=True)
0 commit comments