forked from TeamHG-Memex/eli5
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
93 lines (74 loc) · 1.86 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
89
90
91
92
93
; this is a tox config for running ELI5 tests
; under all supported Python interpreters.
; Building LighGBM may require additional system-level dependencies
; (e.g. cmake); please consult with
; https://github.com/Microsoft/LightGBM/tree/master/python-package#lightgbm-python-package.
[tox]
envlist = py27,py34,py35,py35-nodeps,mypy,py35-extra,py27-extra,py36,py36-extra,py36-sklearn018
[base]
deps=
pytest
pytest-cov
pytest-xdist
hypothesis[numpy] !=3.5.1, !=3.5.0
numpy
scipy
scikit-learn
[testenv]
whitelist_externals = /bin/bash
deps=
{[base]deps}
sklearn-crfsuite
ipython
pandas
commands=
; to install lightning numpy must be installed first
pip install "sklearn-contrib-lightning >= 0.4"
pip install -e .
bash _ci/runtests_default.sh {posargs: eli5 tests}
[testenv:py35-nodeps]
deps=
{[base]deps}
commands=
; without lightning as it is optional
pip install -e .
bash _ci/runtests_nodeps.sh {posargs: eli5 tests}
[testenv:py35-extra]
basepython=python3.5
deps=
{[testenv]deps}
xgboost
lightgbm != 2.0.5, != 2.0.6
commands=
pip install -e .
; run tests for extra dependencies
bash _ci/runtests_extra.sh {posargs: eli5 tests}
[testenv:py36-sklearn018]
commands=
pip install "scikit-learn < 0.19"
{[testenv]commands}
[testenv:py36-extra]
basepython=python3.6
deps={[testenv:py35-extra]deps}
commands={[testenv:py35-extra]commands}
[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
lxml
commands=
mypy --html-report ./mypy-cov --check-untyped-defs eli5
[testenv:docs]
deps=
sphinx
sphinx-rtd-theme
docutils < 0.13
-rdocs/requirements.txt
changedir=docs/source
commands=
sphinx-build -W -b html . {envtmpdir}/html