-
Notifications
You must be signed in to change notification settings - Fork 44
Expand file tree
/
Copy pathtox.ini
More file actions
50 lines (46 loc) · 1.56 KB
/
tox.ini
File metadata and controls
50 lines (46 loc) · 1.56 KB
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
[tox]
envlist =
py{310,311,312,313,314}-test
codestyle
requires =
setuptools >= 30.3.0
pip >= 19.3.1
isolated_build = true
[testenv]
changedir = .tmp/{envname}
passenv = HOME,WINDIR,LC_ALL,LC_CTYPE,CI
setenv =
numpydev: PIP_EXTRA_INDEX_URL = https://pypi.anaconda.org/scientific-python-nightly-wheels/simple
description = run tests
deps =
pytestoldest: pytest==7.0.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.*
pytest84: pytest==8.4.*
pytestdev: git+https://github.com/pytest-dev/pytest#egg=pytest
numpydev: numpy>=0.0.dev0
pytestasyncio: pytest-asyncio
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