File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -102,6 +102,16 @@ jobs:
102
102
name : ${{ matrix.name }}
103
103
env :
104
104
TOX_SKIP_MISSING_INTERPRETERS : False
105
+ # Rich (pip)
106
+ FORCE_COLOR : 1
107
+ # Tox
108
+ PY_COLORS : 1
109
+ # Mypy (see https://github.com/python/mypy/issues/7771)
110
+ TERM : xterm-color
111
+ MYPY_FORCE_COLOR : 1
112
+ MYPY_FORCE_TERMINAL_WIDTH : 200
113
+ # Pytest
114
+ PYTEST_ADDOPTS : --color=yes
105
115
steps :
106
116
- uses : actions/checkout@v3
107
117
- uses : actions/setup-python@v4
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ isolated_build = true
14
14
15
15
[testenv]
16
16
description = run the test driver with {basepython}
17
- passenv = PYTEST_XDIST_WORKER_COUNT PROGRAMDATA PROGRAMFILES(X86)
17
+ passenv = PYTEST_XDIST_WORKER_COUNT PROGRAMDATA PROGRAMFILES(X86) FORCE_COLOR PYTEST_ADDOPTS
18
18
deps = -rtest-requirements.txt
19
19
commands = python -m pytest {posargs}
20
20
@@ -27,6 +27,7 @@ commands =
27
27
28
28
[testenv:type]
29
29
description = type check ourselves
30
+ passenv = TERM MYPY_FORCE_COLOR MYPY_FORCE_TERMINAL_WIDTH
30
31
commands =
31
32
python -m mypy --config-file mypy_self_check.ini -p mypy -p mypyc
32
33
python -m mypy --config-file mypy_self_check.ini misc --exclude misc/fix_annotate.py --exclude misc/async_matrix.py --exclude misc/sync-typeshed.py
You can’t perform that action at this time.
0 commit comments