-
Notifications
You must be signed in to change notification settings - Fork 72
/
tox.ini
97 lines (91 loc) · 2.05 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
85
86
87
88
89
90
91
92
93
94
95
96
97
# 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]
envlist = flake8,py38,py39,py310
skip_missing_interpreters = False
[flake8]
max-line-length = 120
exclude =
build/
.git
__pycache__
.tox
test/resources/
max-complexity = 10
ignore =
C901,
E203,
FI10,
FI12,
FI13,
FI14,
FI15,
FI16,
FI17,
FI18,
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
passenv =
AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY
AWS_SESSION_TOKEN
AWS_CONTAINER_CREDENTIALS_RELATIVE_URI
AWS_DEFAULT_REGION
commands =
coverage run --rcfile .coveragerc --source sagemaker_pytorch_serving_container,sagemaker_inference -m pytest {posargs}
{env:IGNORE_COVERAGE:} coverage report --fail-under=90
deps =
coverage==7.3.2
filelock==3.12.3
botocore==1.31.67
typing_extensions==4.8.0
boto3==1.28.60
fsspec==2023.9.2
idna==3.4
psutil==5.9.5
charset-normalizer==3.3.0
pandas==2.0.3
networkx==3.1
schema==0.7.5
pytest==7.4.2
pytest-cov==4.1.0
pytest-xdist==3.3.1
mock==5.1.0
requests==2.31.0
urllib3==1.26.18
sagemaker == 2.125.0
torch==2.1.0
torchvision==0.16.0
retrying==1.3.4
six==1.16.0
future==0.18.3
PyYaml==6.0.1
protobuf==3.20.3
[testenv:flake8]
basepython = python3.8
deps =
flake8
flake8-future-import
commands = flake8
[testenv:twine]
basepython = python3.8
# https://github.com/pypa/twine/blob/master/docs/changelog.rst
deps =
twine>=1.12.0
# https://packaging.python.org/guides/making-a-pypi-friendly-readme/#validating-restructuredtext-markup
commands =
python setup.py sdist
twine check dist/*.tar.gz