-
Notifications
You must be signed in to change notification settings - Fork 79
/
tox.ini
56 lines (50 loc) · 1.29 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
[tox]
envlist = {py38}-xgboost{1.5},flake8,black-{format,check},isort
[flake8]
max-line-length = 120
[testenv]
setenv = HADOOP_PREFIX = /not/real/path
deps =
xgboost0.72: xgboost==0.72.1
xgboost0.82: xgboost==0.82
xgboost0.90: xgboost==0.90
xgboost1.0: xgboost==1.0
xgboost1.2: xgboost==1.2
xgboost1.3: xgboost==1.3.3
xgboost1.5: xgboost==1.5.2
xgboost1.7: xgboost==1.7.4
xgboostlatest: xgboost
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
conda_deps=
pyarrow==14.0.1
tbb==2020.2
mlio-py==0.9.0
conda_channels=
conda-forge
mlio
commands =
pytest --cov=sagemaker_xgboost_container --cov-fail-under=60 test/unit # increase minimum bar over time (75%+)
[testenv:flake8]
deps = flake8
commands = flake8 setup.py src test
[testenv:black-format]
# Used during development (before committing) to format .py files.
basepython = python3
skipsdist = true
skip_install = true
deps = black
commands =
black -l 120 setup.py src/ test/
[testenv:black-check]
# Used by automated build steps to check that all files are properly formatted.
basepython = python3
skipsdist = true
skip_install = true
deps = black
commands =
black -l 120 --check setup.py src/ test/
[testenv:isort]
deps = isort
commands =
isort setup.py src/ test/