-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtox.ini
67 lines (58 loc) · 1.19 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
[base]
name = voxcell
testdeps =
pytest
[testenv]
extras = all
deps = {[base]testdeps}
commands = pytest {posargs}
[testenv:check-packaging]
deps =
wheel
twine
commands =
python setup.py sdist bdist_wheel -d {envtmpdir}/dist
twine check {envtmpdir}/dist/*
[testenv:lint]
deps =
pycodestyle
pydocstyle
pylint
isort
commands =
pycodestyle {[base]name}
pydocstyle {[base]name}
pylint {[base]name}
isort --check-only --diff {[base]name}
[testenv:format]
deps =
isort
commands =
isort {[base]name}
[testenv:coverage]
deps =
{[base]testdeps}
coverage
commands =
coverage run --source={[base]name} -m pytest tests/
coverage report --show-missing
coverage xml
[testenv:docs]
changedir = doc
deps =
sphinx
sphinx-bluebrain-theme
commands =
make clean
make html SPHINXOPTS=-WT
allowlist_externals = make
[pycodestyle]
# E731: do not assign a lambda expression, use a def
# W503: line break after binary operator
# W504: line break before binary operator
# E501: line too long (checked with pylint)
ignore = E731,W503,W504,E501
[pydocstyle]
# D413: no blank line after last section
add-ignore = D413
convention = google