-
Notifications
You must be signed in to change notification settings - Fork 42
/
tox.ini
117 lines (97 loc) · 2.43 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
; This is a tox config for running ELI5 tests
; under all supported Python interpreters.
; Building LightGBM 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]
; if adding or removing an environment, please also update .github/workflows/python-package.yml
envlist = docs,mypy,py36,py36-nodeps,py36-extra,py37,py38,py38-nodeps,py39,py39-nodeps
[base]
deps=
-cconstraints-test.txt
pytest
pytest-cov
pytest-xdist
hypothesis[numpy] !=3.5.1, !=3.5.0, !=4.24.3
numpy
scipy
scikit-learn
[testenv]
whitelist_externals = /bin/bash
deps=
{[base]deps}
ipython
pandas
commands=
; to install lightning numpy must be installed first
pip install joblib "sklearn-contrib-lightning >= 0.4"
pip install -e .
bash _ci/runtests_default.sh {posargs: eli5 tests}
; TODO once sklearn-crfsuite is compatible, use
; bash _ci/runtests_default_with_crfsuite.sh {posargs: eli5 tests}
[testenv:py36-extra]
basepython=python3.6
deps=
{[testenv]deps}
xgboost
lightgbm != 2.0.5, != 2.0.6
catboost
tensorflow
keras
matplotlib
Pillow
commands=
pip install -e .
; run tests for extra dependencies
bash _ci/runtests_extra.sh {posargs: eli5 tests}
[testenv:py27-extra]
basepython=python2.7
deps=
{[testenv]deps}
xgboost
lightgbm < 3.2.0
catboost
tensorflow
keras
matplotlib
Pillow
commands={[testenv:py36-extra]commands}
[testenv:py36-nodeps]
deps=
{[base]deps}
commands=
; without lightning as it is optional
pip install -e .
bash _ci/runtests_nodeps.sh {posargs: eli5 tests}
[testenv:py38-nodeps]
basepython=python3.8
deps={[base]deps}
commands={[testenv:py36-nodeps]commands}
[testenv:py39-nodeps]
basepython=python3.9
deps={[base]deps}
commands={[testenv:py36-nodeps]commands}
[testenv:mypy]
basepython=python3.6
deps=
{[testenv]deps}
mypy == 0.750
lxml
commands=
mypy --html-report ./mypy-cov --check-untyped-defs --ignore-missing-imports eli5
[testenv:docs]
deps=
mock==1.0.1
pillow==8.3.1
alabaster>=0.7,<0.8,!=0.7.5
commonmark==0.8.1
recommonmark==0.5.0
sphinx<2
sphinx-rtd-theme<0.5
readthedocs-sphinx-ext<2.2
docutils < 0.17.0
-rdocs/requirements.txt
changedir=docs/source
commands=
pip install -e ../..
sphinx-build -W -b html . {envtmpdir}/html