-
Notifications
You must be signed in to change notification settings - Fork 7
/
tox.ini
71 lines (61 loc) · 1.25 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
[base]
name = neuror
testdeps =
mock
pytest
[tox]
envlist =
py{38,39,310,311}
py38-plotly
lint
coverage
docs
minversion = 3.1.0
# ignore basepython for envs that already specify a version
ignore_basepython_conflict = true
[testenv]
deps = {[base]testdeps}
commands = pytest --ignore=tests/test_plotly_extra.py {posargs}
[testenv:py38-plotly]
extras = plotly
commands = pytest tests/test_plotly_extra.py {posargs}
[testenv:lint]
deps =
pycodestyle
pylint
commands =
pycodestyle {[base]name}
pylint {[base]name}
[testenv:coverage]
extras = plotly
deps =
{[base]testdeps}
coverage
commands =
coverage run --source={[base]name} -m pytest tests
coverage report --show-missing
coverage xml
[testenv:docs]
changedir = doc
extras =
docs
plotly
commands =
make clean
make html SPHINXOPTS=-W # make warnings into errors with -W sphinx option
allowlist_externals = make
# E731: do not assign a lambda expression, use a def
# W503: line break after binary operator
# W504: line break before binary operator
[pycodestyle]
ignore = E731,W503,W504
max-line-length = 100
[gh-actions]
python =
3.8: py38, py38-plotly, docs, lint
3.9: py39
3.10: py310
3.11: py311
[isort]
line_length=100
profile=black