Skip to content

Commit 1fb2a0d

Browse files
committed
Update Tox commands
1 parent 5e6876e commit 1fb2a0d

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

tox.ini

+14-3
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,37 @@
11
[tox]
2+
minversion = 2.4.0
23
envlist =
34
py{38,39,310,311,312},
45
flake8,
56
mypy
7+
isolated_build = True
68

79
[testenv]
10+
usedevelop = True
11+
passenv =
12+
https_proxy
13+
http_proxy
14+
no_proxy
15+
COLORTERM
16+
PERL
17+
PERL5LIB
18+
PYTEST_ADDOPTS
19+
TERM
820
deps=
921
pytest
1022
sphinx @ git+https://github.com/sphinx-doc/sphinx
1123
extras=
1224
test
1325
setenv =
1426
PYTHONWARNINGS = all,ignore::DeprecationWarning:docutils.io
27+
PYTEST_ADDOPTS = {env:PYTEST_ADDOPTS:} --color yes
1528
commands=
16-
pytest --durations 25 {posargs}
29+
python -X dev -X warn_default_encoding -m pytest --durations 25 {posargs}
1730

1831
[testenv:flake8]
1932
description =
2033
Run style checks.
2134
extras=
22-
test
2335
lint
2436
commands=
2537
flake8
@@ -28,7 +40,6 @@ commands=
2840
description =
2941
Run type checks.
3042
extras=
31-
test
3243
lint
3344
commands=
3445
mypy sphinxcontrib/

0 commit comments

Comments
 (0)