-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MYPY_FORCE_COLOR only colours output on Windows, not macOS/Ubuntu #13817
Comments
Asked a friend since this seems weird to me. Supposedly, GHA doesn't provide https://github.com/A5rocks/repro-13817/commit/5f65e7d7b2d2c08ba7f5cc0c789c1b72825dfaf0 |
It would be nice for mypy to explicitly note that somewhere here:
Lines 511 to 516 in ff81a1c
|
Maybe mypy should just warn if TERM is not present yet the user wants to force color? |
Generally it seems like a bug for |
See: - python/mypy#13815 - python/mypy#13817 This seems to be working in in all jobs *except* for the Python 3.7 and 3.8 jobs on macOS.
Bug Report
When using
MYPY_FORCE_COLOR
(orFORCE_COLOR
withmaster
) on GitHub Actions (which is not a tty), colour only shows up for Windows, and not for Ubuntu or macOS.To Reproduce
Test with a worklflow something like this:
Expected Behavior
Colour output for all three operating systems.
Actual Behavior
Colour output only for Windows:
And not for Ubuntu:
Nor macOS:
For example: https://github.com/hugovk/test/actions/runs/3185917456
Your Environment
mypy.ini
(and other config files): noneThe text was updated successfully, but these errors were encountered: