forked from BlueBrain/nexus-forge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
47 lines (40 loc) · 806 Bytes
/
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
[base]
name = kgforge
testdeps =
pytest
pytest-bdd
pytest-mock
[tox]
envlist =
lint
py{37,38}
indexserver =
default = https://bbpteam.epfl.ch/repository/devpi/simple
[testenv]
deps = {[base]testdeps}
commands = pytest tests
[testenv:lint]
basepython=python3.6
deps =
pycodestyle
pylint
commands =
pycodestyle {[base]name}
pylint -j2 {[base]name}
[testenv:coverage]
deps =
{[base]testdeps}
pytest-cov
commands =
pytest --cov={[base]name} tests
[testenv:docs]
changedir = docs
extras = docs
commands = make html SPHINXOPTS=-W
whitelist_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