forked from SeldonIO/alibi-detect
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
127 lines (114 loc) · 2.88 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
122
123
124
125
126
127
# Entry point for use with pytest-randomly (pytest uses the alibi_detect set_seed to set RNG seeds during testing)
[options.entry_points]
pytest_randomly.random_seeder =
reseed = alibi_detect.utils._random:set_seed
[aliases]
test=pytest
[tool:pytest]
addopts =
--tb native
-W ignore
--cov=alibi_detect
--durations=50
--durations-min=1.0
#-n auto
#--forked
[flake8]
max-line-length = 120
exclude =
# sphinx configuration
doc/source/conf.py
# post-test
.eggs/
[mypy]
ignore_missing_imports = True
strict_optional = False
show_error_codes = True
warn_unused_ignores = True
warn_redundant_casts = True
# sphinx configuration
[mypy-conf]
ignore_errors = True
# tox test environments for generating licenses and testing optional dependencies
[tox:tox]
envlist=
default
tensorflow
torch
prophet
keops
all
# tox test environment for generating licenses
[testenv:licenses]
basepython = python
deps =
pip-licenses
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
pytest-randomly
passenv = COMMAND
commands = {env:COMMAND:pytest --no-cov alibi_detect/tests/test_dep_management.py --opt-dep=default}
# tox test environment for testing tensorflow optional dependency imports
[testenv:tensorflow]
basepython = python
deps = pytest
pytest-cov
pytest-randomly
extras=
tensorflow
commands =
{env:COMMAND:pytest --no-cov alibi_detect/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
pytest-randomly
extras=
torch
commands =
{env:COMMAND:pytest --no-cov alibi_detect/tests/test_dep_management.py --opt-dep=torch}
# tox test environment for testing prophet optional dependency imports
[testenv:prophet]
basepython = python
deps = pytest
pytest-cov
pytest-randomly
extras=
prophet
commands =
{env:COMMAND:pytest --no-cov alibi_detect/tests/test_dep_management.py --opt-dep=prophet}
# tox test environment for testing keops optional dependency imports
[testenv:keops]
basepython = python
deps = pytest
pytest-cov
pytest-randomly
extras=
keops
commands =
{env:COMMAND:pytest --no-cov alibi_detect/tests/test_dep_management.py --opt-dep=keops}
# environment for testing imports with all optional dependencies installed
[testenv:all]
basepython = python
deps = pytest
pytest-cov
pytest-randomly
extras=
all
commands =
{env:COMMAND:pytest --no-cov alibi_detect/tests/test_dep_management.py --opt-dep=all}