-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
73 lines (65 loc) · 1.61 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# Tox (http://tox.testrun.org/) 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.
[tox]
envlist = py38,py39,py310,py311,py312,flake8,pylint,check-manifest,checkreadme
[testenv]
commands =
xvfb-run --error-file /tmp/xvfb.error --server-args=-noreset -a pytest -n auto --cov={envsitepackagesdir}/disc_solver {posargs}
coverage html -d .coverage_html
deps =
pytest>=5.0
pytest-cov
pytest-regtest==2.1.1
py
pytest-info-collector
pytest-xdist
pytest-datadir
wheel
-c known_broken_constraints.txt
allowlist_externals =
xvfb-run
notify-send
passenv =
PYTHONFAULTHANDLER
MPLBACKEND
TMPDIR
#[testenv:docs]
#changedir=docs
#deps=-rdoc-requirements.txt
#commands=
# sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
[testenv:flake8]
basepython=python3
deps=
flake8
wheel
-c known_broken_constraints.txt
commands=
flake8 --exclude={envsitepackagesdir}/disc_solver/_version_.py {envsitepackagesdir}/disc_solver
flake8 tests
[testenv:pylint]
basepython=python3
deps=
-r pylint-requirements.txt
-c known_broken_constraints.txt
commands=
pylint disc_solver
[testenv:check-manifest]
basepython=python3
deps=
check-manifest
-c known_broken_constraints.txt
setenv =
CHECK_MANIFEST=true
commands=
check-manifest
[testenv:checkreadme]
basepython=python3
deps=
readme_renderer
setuptools
-c known_broken_constraints.txt
commands=
python setup.py check -s -r