-
Notifications
You must be signed in to change notification settings - Fork 10
/
tox.ini
67 lines (46 loc) · 1.2 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
[tox]
envlist = py37, lint, docs
[default]
basepython = python3.7
deps =
.[test]
setenv =
PYTHONPATH = {toxinidir}
[testenv]
description = run tests
basepython =
py37: python3.7
pypy3: pypy3
deps =
{[default]deps}
setenv =
{[default]setenv}
passenv = CI TRAVIS TRAVIS_*
commands =
pytest --cov=./mlbench_core/
codecov
[testenv:docs]
basepython=python
changedir={toxinidir}/docs
deps=
-rdocs/requirements.txt
commands=
sphinx-build -W -b html -d _build/doctrees . _build/html
[testenv:lint]
description = run Black (linter) and isort (import sorter)
basepython = {[default]basepython}
skip_install = True
deps =
.[lint]
setenv =
BLACK_LINT_ARGS=--check
commands =
black {env:BLACK_LINT_ARGS:} .
isort --check-only .
[tool:isort]
; black's default line length
line_length = 88
multi_line_output = 3
include_trailing_comma = True
known_first_party = mlbench_core
known_third_party =PIL,appdirs,boto3,botocore,click,cv2,deprecation,dill,docker,docutils,freezegun,gensidebar,google,kubernetes,lmdb,matplotlib,mosestokenizer,numpy,pyhelm,pytest,requests,setuptools,six,sklearn,sphinx,tabulate,tensorflow,tensorpack,torch,torchtext,torchvision,tqdm,urllib3,yaml