/
tox.ini
84 lines (75 loc) · 1.49 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
74
75
76
77
78
79
80
81
82
83
84
[base]
name = neurom
testdeps =
pytest>3.0
[tox]
envlist =
lint
docs
coverage
tutorial
check-packaging
py{38,39,310,311,312}
[testenv]
deps =
{[base]testdeps}
pytest-cov
extras = plotly
commands = pytest \
--cov={envsitepackagesdir}/{[base]name} \
--cov-report term-missing \
--cov-fail-under=100 \
--cov-report=xml \
--no-cov-on-fail \
{posargs}
[testenv:lint]
basepython=python3.8
deps =
pycodestyle
pydocstyle
astroid
pylint
commands =
pycodestyle --exclude=tests neurom
pydocstyle --match-dir='(?!test).*' {toxinidir}/neurom
pylint --rcfile=pylintrc --extension-pkg-whitelist=numpy --ignore=tests neurom
[testenv:docs]
basepython=python3.9
changedir = doc
extras = docs
commands =
# remove autosummary output
rm -rf {toxinidir}/doc/source/_neurom_build
make clean
make html SPHINXOPTS=-W
allowlist_externals =
make
rm
[testenv:tutorial]
changedir = {toxinidir}/tutorial
extras = plotly
deps =
{[base]testdeps}
nbmake
ipywidgets
commands =
pytest --nbmake .
[testenv:check-packaging]
skip_install = true
deps =
build
twine
commands =
python -m build -o {envtmpdir}/dist
twine check {envtmpdir}/dist/*
[pycodestyle]
max-line-length=100
[pydocstyle]
convention = google
[gh-actions]
python =
3.8: py38, lint
3.9: py39, docs
3.10: py310, tutorial
3.11: py311, check-packaging
3.12: py312