-
Notifications
You must be signed in to change notification settings - Fork 18
/
tox.ini
49 lines (42 loc) · 1.24 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
# tox (https://tox.readthedocs.io/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
# NOTE: remember to update the classifiers in setup.cfg when Python versions
# are added/removed
[tox]
envlist = py36, py37, py38, py39, py310, py311, py312, codestyle, docs, cov
isolated_build = True
[gh-actions]
python =
3.6: py36
3.7: py37
3.8: py38
3.9: py39
3.10: py310, cov # Update .github/workflows/tox.yaml if cov is moved
3.11: py311, codestyle
[testenv]
commands = pytest {posargs}
# Remember to keep synchronized with extras_require in setup.cfg
deps =
pytest
requests-mock
[testenv:docs]
changedir = docs
deps = sphinx
commands = python -m sphinx -W -n -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
[testenv:cov]
commands = pytest --cov=neuroglancer_scripts --cov-report=xml
deps =
{[testenv]deps}
pytest-cov
[testenv:codestyle]
# pre-commit needs to clone Git repositories over https
passenv = http_proxy,https_proxy,no_proxy
commands = pre-commit run --all-files
deps =
pre-commit
[pytest]
filterwarnings =
default
error:::neuroglancer_scripts