-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
60 lines (52 loc) · 1.18 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
[coverage:run]
omit = tests/
branch = true
[coverage:report]
show_missing = true
exclude_lines =
# Have to re-enable the standard pragma
pragma: no cover
# Don't complain if tests don't hit defensive assertion code:
raise NotImplementedError
[tool:pytest]
testpaths = tests/
[tox]
envlist =
py36
py37
pypy
coverage
docs
lint
[testenv]
basepython =
py3: python3.6
py35: python3.5
py36: python3.6
py37: python3.7
commands =
pip install -q python-forge[testing]
pytest {posargs:}
[testenv:coverage]
basepython = python3.6
commands =
pip install -q python-forge[testing]
coverage run --source=forge {envbindir}/pytest {posargs:}
coverage xml
coverage report --show-missing --fail-under=100
setenv =
COVERAGE_FILE=.coverage
[testenv:docs]
basepython = python3.6
whitelist_externals = make
commands =
pip install python-forge[docs]
make -C docs doctest html epub BUILDDIR={envdir} "SPHINXOPTS=-W -E"
[testenv:lint]
basepython = python3.6
commands =
pip install -q python-forge[testing]
pylint forge --rcfile=.pylintrc
mypy --follow-imports silent -m forge
setenv =
MYPYPATH={envsitepackagesdir}