forked from SeldonIO/alibi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
121 lines (110 loc) · 2.74 KB
/
setup.cfg
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
118
119
120
121
[aliases]
test=pytest
[tool:pytest]
addopts =
--tb native
-W ignore
--cov=alibi
--cov-append
# -n auto
# --forked
markers =
tf1: runs only tests marked with tf1 to allow testing for algorithms depending on TF1.x behaviour
[flake8]
max-line-length = 120
exclude =
# sphinx configuration
doc/source/conf.py
# post-test
.eggs/
[mypy]
ignore_missing_imports = True
no_implicit_optional = True
show_error_codes = True
# sphinx configuration
[mypy-conf]
ignore_errors = True
# tox test environments for generating licenses and testing optional dependencies
[tox:tox]
envlist=
default
tensorflow
torch
shap
ray
all
# tox test environment for generating licenses
[testenv:licenses]
basepython = python
deps =
pip-licenses
importlib-metadata # not present with py38
zipp # not present with py38
idna-ssl # required with py36
dataclasses # required with py36
contextvars # required with py36
immutables # required with py36
extras = all
commands =
pip-licenses \
--from=mixed \
--format=csv \
--output-file=./licenses/license_info.csv
pip-licenses \
--from=mixed \
--format=plain-vertical \
--with-license-file \
--no-license-path \
--output-file=./licenses/license.txt
# environment for testing imports without any optional dependencies installed
[testenv:default]
basepython = python
deps = pytest
pytest-cov
passenv = COMMAND
commands = {env:COMMAND:pytest --no-cov alibi/tests/test_dep_management.py --opt-dep=default}
# tox test environment for testing ray optional dependency imports
[testenv:ray]
basepython = python
deps = pytest
pytest-cov
extras=
ray
passenv = COMMAND
commands = {env:COMMAND:pytest --no-cov alibi/tests/test_dep_management.py --opt-dep=ray}
# tox test environment for testing tensorflow optional dependency imports
[testenv:tensorflow]
basepython = python
deps = pytest
pytest-cov
extras=
tensorflow
commands =
{env:COMMAND:pytest --no-cov alibi/tests/test_dep_management.py --opt-dep=tensorflow}
# tox test environment for testing torch optional dependency imports
[testenv:torch]
basepython = python
deps = pytest
pytest-cov
extras=
torch
commands =
{env:COMMAND:pytest --no-cov alibi/tests/test_dep_management.py --opt-dep=torch}
# tox test environment for testing shap optional dependency imports
[testenv:shap]
basepython = python
deps = pytest
pytest-cov
extras=
shap
commands =
{env:COMMAND:pytest --no-cov alibi/tests/test_dep_management.py --opt-dep=shap}
# environment for testing imports with all optional dependencies installed
[testenv:all]
basepython = python
deps = pytest
pytest-cov
extras=
all
commands =
{env:COMMAND:pytest --no-cov alibi/tests/test_dep_management.py --opt-dep=all}