forked from aws/sagemaker-spark
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
70 lines (59 loc) · 1.12 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
68
69
70
[tox]
envlist = clean,flake8,docs,py{27,36},stats
skip_missing_interpreters = False
[travis]
python =
3.5: py35, flake8
[testenv]
alwayscopy = True
deps =
coverage == 4.0.2
-rrequirements.txt
LANG=en_US.UTF-8
LANGUAGE=en_US:en
LC_ALL=en_US.UTF-8
commands =
coverage run --source sagemaker_pyspark setup.py test
{env:IGNORE_COVERAGE:} coverage report --fail-under=90
passenv =
TEAMCITY_VERSION
AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY
AWS_SESSION_TOKEN
AWS_REGION
[testenv:docs]
basepython=python3
deps =
sphinx
sphinx_rtd_theme
-rrequirements.txt
commands = sphinx-build -b html docs html
[testenv:flake8]
basepython=python3
deps =
flake8
flake8_formatter_abspath
skip_install = true
commands=flake8 src/sagemaker_pyspark/ tests/ setup.py
passenv = TEAMCITY_VERSION
[testenv:stats]
basepython=python3
skip_install=true
commands=
- coverage report
- coverage html
[testenv:clean]
basepython=python3
skip_install=true
commands=
coverage erase
[flake8]
exclude =
.git,
__pycache__,
build,
dist,
.eggs
max-complexity = 10
max-line-length = 100
format=abspath