forked from aws/sagemaker-tensorflow-serving-container
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
84 lines (74 loc) · 1.66 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
skipsdist = True
skip_missing_interpreters = False
envlist = jshint,flake8,pylint,py36,py37
[flake8]
max-line-length = 100
exclude =
build/
.github/
.pytest_cache/
.git
.tox
tests/resources/
docker/build_artifacts/sagemaker/tensorflow/
docker/build_artifacts/sagemaker/tensorflow-2.1/
docker/build_artifacts/sagemaker/tensorflow-2.2/
max-complexity = 10
ignore =
FI10,
FI12,
FI13,
FI14,
FI15,
FI16,
FI17,
FI18, # __future__ import "annotations" missing -> check only Python 3.7 compatible
FI50,
FI51,
FI52,
FI53,
FI54,
FI55,
FI56,
FI57,
W503
require-code = True
[testenv]
# {posargs} can be passed in by additional arguments specified when invoking tox.
# Can be used to specify which tests to run, e.g.: tox -- -s
basepython = python3
passenv =
AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY
AWS_SESSION_TOKEN
AWS_CONTAINER_CREDENTIALS_RELATIVE_URI
AWS_DEFAULT_REGION
commands =
python -m pytest {posargs}
deps =
pytest
pytest-xdist
boto3
requests
[testenv:flake8]
deps =
flake8
commands = flake8 docker/build_artifacts/
[testenv:pylint]
deps =
pylint
commands =
python -m pylint --rcfile=.pylintrc docker/build_artifacts/
[testenv:jshint]
whitelist_externals =
jshint
commands =
jshint docker/build_artifacts/
[pytest]
markers =
skip_gpu: skip test if running on gpu instance