Repository navigation
Expand file tree
/
Copy pathsetup.cfg
More file actions
79 lines (71 loc) · 1.68 KB
/
Copy pathsetup.cfg
File metadata and controls
79 lines (71 loc) · 1.68 KB
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
[flake8]
max-line-length = 88
extend-ignore =
# See https://github.com/PyCQA/pycodestyle/issues/373
E203,
exclude =
# Generated gRPC code
./mlserver/grpc/dataplane_pb2*
./mlserver/grpc/model_repository_pb2*
./mlserver.egg-info
./.tox
[mypy]
ignore_missing_imports = True
plugins = pydantic.mypy
[tox:tox]
basepython = py3
envlist =
py3
sklearn
xgboost
lightgbm
all
[testenv]
deps = -r{toxinidir}/requirements-dev.txt
commands = pytest {posargs} {toxinidir}/tests
[testenv:sklearn]
deps =
-e{toxinidir}
-e{toxinidir}/runtimes/sklearn
-r{toxinidir}/requirements-dev.txt
commands = pytest {posargs} {toxinidir}/runtimes/sklearn
[testenv:xgboost]
deps =
-e{toxinidir}
-e{toxinidir}/runtimes/xgboost
-r{toxinidir}/requirements-dev.txt
commands = pytest {posargs} {toxinidir}/runtimes/xgboost
[testenv:lightgbm]
deps =
-e{toxinidir}
-e{toxinidir}/runtimes/lightgbm
-r{toxinidir}/requirements-dev.txt
commands = pytest {posargs} {toxinidir}/runtimes/lightgbm
[testenv:all]
deps =
-e{toxinidir}
-e{toxinidir}/runtimes/sklearn
-e{toxinidir}/runtimes/xgboost
-e{toxinidir}/runtimes/mllib
-e{toxinidir}/runtimes/lightgbm
-r{toxinidir}/requirements-dev.txt
commands = pytest {posargs}
[testenv:licenses]
deps =
-e{toxinidir}
-e{toxinidir}/runtimes/sklearn
-e{toxinidir}/runtimes/xgboost
-e{toxinidir}/runtimes/mllib
-e{toxinidir}/runtimes/lightgbm
-r{toxinidir}/requirements-dev.txt
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