Skip to content

Commit

Permalink
Update Tox commands
Browse files Browse the repository at this point in the history
  • Loading branch information
AA-Turner committed Jan 7, 2023
1 parent 5e6876e commit 1fb2a0d
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,25 +1,37 @@
[tox]
minversion = 2.4.0
envlist =
py{38,39,310,311,312},
flake8,
mypy
isolated_build = True

[testenv]
usedevelop = True
passenv =
https_proxy
http_proxy
no_proxy
COLORTERM
PERL
PERL5LIB
PYTEST_ADDOPTS
TERM
deps=
pytest
sphinx @ git+https://github.com/sphinx-doc/sphinx
extras=
test
setenv =
PYTHONWARNINGS = all,ignore::DeprecationWarning:docutils.io
PYTEST_ADDOPTS = {env:PYTEST_ADDOPTS:} --color yes
commands=
pytest --durations 25 {posargs}
python -X dev -X warn_default_encoding -m pytest --durations 25 {posargs}

[testenv:flake8]
description =
Run style checks.
extras=
test
lint
commands=
flake8
Expand All @@ -28,7 +40,6 @@ commands=
description =
Run type checks.
extras=
test
lint
commands=
mypy sphinxcontrib/

0 comments on commit 1fb2a0d

Please sign in to comment.