File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
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 2
2
minversion = 3.8.0
3
3
skip_missing_interpreters = {env:TOX_SKIP_MISSING_INTERPRETERS:True}
4
4
envlist =
5
- py36,
6
5
py37,
7
6
py38,
8
7
py39,
@@ -14,7 +13,7 @@ isolated_build = true
14
13
15
14
[testenv]
16
15
description = run the test driver with {basepython}
17
- passenv = PYTEST_XDIST_WORKER_COUNT PROGRAMDATA PROGRAMFILES(X86)
16
+ passenv = PYTEST_XDIST_WORKER_COUNT PROGRAMDATA PROGRAMFILES(X86) PYTEST_ADDOPTS
18
17
deps = -rtest-requirements.txt
19
18
commands = python -m pytest {posargs}
20
19
@@ -27,6 +26,7 @@ commands =
27
26
28
27
[testenv:type]
29
28
description = type check ourselves
29
+ passenv = TERM MYPY_FORCE_COLOR MYPY_FORCE_TERMINAL_WIDTH
30
30
commands =
31
31
python -m mypy --config-file mypy_self_check.ini -p mypy -p mypyc
32
32
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