forked from BlueBrain/NeuroM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
64 lines (56 loc) · 1.06 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
[base]
name = neurom
testdeps =
mock
pytest>3.0
[tox]
envlist =
py{38,39,310,311}
py38-lint
py38-coverage
py38-docs
[testenv]
deps = {[base]testdeps}
extras = plotly
commands = pytest {posargs}
[testenv:py38-lint]
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:py38-coverage]
deps =
{[base]testdeps}
pytest-cov
commands =
pytest tests \
--cov={envsitepackagesdir}/{[base]name} \
--cov-report term-missing \
--cov-fail-under=100 \
--cov-report=xml
[testenv:py38-docs]
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
[pycodestyle]
max-line-length=100
[pydocstyle]
convention = google
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311