summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorBernát Gábor <bgabor8@bloomberg.net>2021-01-08 10:36:02 +0000
committerBernát Gábor <bgabor8@bloomberg.net>2021-01-08 12:04:41 +0000
commit0a77b615fae2ceff28b852f9b7969ec458e1519c (patch)
tree2fca1ab52f6181672aeb6584bf9e250a64b13c0b /tox.ini
parent83cfbb13d7d2e3ff1a82b7e7cb258939b33914da (diff)
downloadtox-git-0a77b615fae2ceff28b852f9b7969ec458e1519c.tar.gz
Add tty replacer
This allows users to force isatty until we fix https://github.com/tox-dev/tox/issues/1773. Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini3
1 files changed, 2 insertions, 1 deletions
diff --git a/tox.ini b/tox.ini
index 3fc37d89..f4a17ed4 100644
--- a/tox.ini
+++ b/tox.ini
@@ -26,7 +26,7 @@ setenv =
extras =
testing
commands =
- pytest {posargs: \
+ pytest {tty:--color=yes} {posargs: \
--junitxml {toxworkdir}/junit.{envname}.xml --cov {envsitepackagesdir}/tox --cov {toxinidir}/tests \
--cov-config=setup.cfg --no-cov-on-fail --cov-report term-missing:skip-covered --cov-context=test \
--cov-report html:{envtmpdir}/htmlcov \
@@ -49,6 +49,7 @@ commands =
[testenv:type]
description = run type check on code base
+setenv = {tty:MYPY_FORCE_COLOR = 1}
deps =
mypy==0.790
commands =