forked from TeamHG-Memex/eli5
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
88 lines (70 loc) · 1.9 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
85
86
87
88
; this is a tox config for running ELI5 tests
; under all supported Python interpreters
[tox]
envlist = py27,py34,py35,py35-nodeps,mypy,py35-extra,py27-extra
[base]
deps=
pytest
pytest-cov
hypothesis[numpy] !=3.5.1, !=3.5.0
numpy
scipy
scikit-learn
[testenv]
deps=
{[base]deps}
sklearn-crfsuite
ipython
commands=
; to install lightning numpy must be installed first
pip install "sklearn-contrib-lightning >= 0.4"
pip install -e .
py.test --doctest-modules \
--ignore eli5/xgboost.py \
--cov=eli5 --cov-report=html --cov-report=term {posargs: eli5 tests}
[testenv:py35-nodeps]
deps=
{[base]deps}
commands=
; without lightning as it is optional
pip install -e .
py.test --doctest-modules \
--ignore eli5/lightning.py \
--ignore eli5/sklearn_crfsuite \
--ignore eli5/ipython.py \
--ignore eli5/xgboost.py \
--cov=eli5 --cov-report=html --cov-report=term {posargs: eli5 tests}
[testenv:py35-extra]
basepython=python3.5
deps=
{[testenv]deps}
xgboost
commands=
pip install -e .
py.test --doctest-modules \
--ignore tests/test_lime.py \
--ignore tests/test_samplers.py \
--ignore tests/test_sklearn_explain_prediction.py \
--ignore tests/test_sklearn_explain_weights.py \
--ignore eli5/lightning.py \
--cov=eli5 --cov-report=html --cov-report=term {posargs: eli5 tests}
[testenv:py27-extra]
basepython=python2.7
deps={[testenv:py35-extra]deps}
commands={[testenv:py35-extra]commands}
[testenv:mypy]
basepython=python3.5
deps=
{[testenv]deps}
mypy-lang
commands=
mypy --silent-imports --check-untyped-defs eli5
[testenv:docs]
deps=
{[base]deps}
sphinx
sphinx-rtd-theme
docutils < 0.13
changedir=docs/source
commands=
sphinx-build -W -b html . {envtmpdir}/html