forked from scientific-python/pytest-doctestplus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
55 lines (51 loc) · 1.68 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
[tox]
envlist =
py{38,39,310,311,312,313}-test
codestyle
requires =
setuptools >= 30.3.0
pip >= 19.3.1
isolated_build = true
[testenv]
changedir = .tmp/{envname}
setenv =
numpydev: PIP_EXTRA_INDEX_URL = https://pypi.anaconda.org/scientific-python-nightly-wheels/simple
description = run tests
deps =
pytestoldest: pytest==4.6.0
pytest50: pytest==5.0.*
pytest51: pytest==5.1.*
pytest52: pytest==5.2.*
pytest53: pytest==5.3.*
pytest60: pytest==6.0.*
pytest61: pytest==6.1.*
pytest62: pytest==6.2.*
pytest70: pytest==7.0.*
pytest71: pytest==7.1.*
pytest72: pytest==7.2.*
pytest73: pytest==7.3.*
pytest74: pytest==7.4.*
pytest80: pytest==8.0.*
pytest81: pytest==8.1.*
pytest82: pytest==8.2.*
pytest83: pytest==8.3.*
pytestdev: git+https://github.com/pytest-dev/pytest#egg=pytest
numpydev: numpy>=0.0.dev0
extras =
test
commands =
pip freeze
# Ignore directly running tests in ``skip_some_remote_data.rst`` with
# ``remote-data`` as there are some artificial failures included in there.
pytest {toxinidir}/tests --ignore={toxinidir}/tests/docs/skip_some_remote_data.rst --doctest-plus --doctest-rst --remote-data {posargs}
pytest {toxinidir}/tests {posargs}
pytest {toxinidir}/tests --doctest-plus {posargs}
pytest {toxinidir}/tests --doctest-plus --doctest-rst {posargs}
pytest {toxinidir}/tests --doctest-plus --doctest-rst --text-file-format=tex {posargs}
sphinx-build {toxinidir}/tests {toxinidir}/tests/_build/html -W
[testenv:codestyle]
changedir =
skip_install = true
description = check code style, e.g. with flake8
deps = flake8
commands = flake8 pytest_doctestplus --count