Skip to content

Commit 59d85c4

Browse files
committed
canwecolor🚀
1 parent dbcbb3f commit 59d85c4

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

‎pytest.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ python_functions =
2121
# always run in parallel (requires pytest-xdist, see test-requirements.txt)
2222
# and enable strict mode: require all markers
2323
# to be defined and raise on invalid config values
24-
addopts = -nauto --strict-markers --strict-config
24+
addopts = -nauto --strict-markers --strict-config --color=yes
2525

2626
# treat xpasses as test failures so they get converted to regular tests as soon as possible
2727
xfail_strict = true

‎tox.ini

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ commands =
2727

2828
[testenv:type]
2929
description = type check ourselves
30+
setenv =
31+
TERM = ansi
32+
MYPY_FORCE_COLOR = 1
33+
MYPY_FORCE_TERMINAL_WIDTH = 200
3034
commands =
3135
python -m mypy --config-file mypy_self_check.ini -p mypy -p mypyc
3236
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

0 commit comments

Comments
 (0)