@@ -100,28 +100,33 @@ commands =
100
100
[testenv:flake8]
101
101
skipdist = true
102
102
skip_install = true
103
+ deps =
104
+ -r requirements/tox/flake8_requirements.txt
103
105
commands =
104
- pip install --exists-action =w -r requirements/tox/flake8_requirements.txt
105
106
flake8
106
107
107
108
[testenv:pylint]
108
109
skipdist = true
109
110
skip_install = true
111
+ deps =
112
+ -r requirements/tox/pylint_requirements.txt
110
113
commands =
111
- pip install --exists-action =w -r requirements/tox/pylint_requirements.txt
112
114
python -m pylint --rcfile =.pylintrc -j 0 src/sagemaker
113
115
114
116
[testenv:spelling]
115
117
skipdist = true
116
118
skip_install = true
119
+ deps =
120
+ -r requirements/tox/spelling_requirements.txt
117
121
commands =
118
- pip install --exists-action =w -r requirements/tox/spelling_requirements.txt
119
122
python -m pylint --rcfile =.pylintrc --disable all --enable spelling --spelling-dict en_US src/sagemaker/{posargs}
120
123
121
124
[testenv:twine]
122
125
# https://packaging.python.org/guides/making-a-pypi-friendly-readme/#validating-restructuredtext-markup
126
+ skip_install = true
127
+ deps =
128
+ -r requirements/tox/twine_requirements.txt
123
129
commands =
124
- pip install --exists-action =w -r requirements/tox/twine_requirements.txt
125
130
python setup.py sdist
126
131
twine check dist/*.tar.gz
127
132
@@ -136,8 +141,9 @@ commands =
136
141
sphinx-build -T -W -b html -d _build/doctrees-readthedocs -D language =en . _build/html
137
142
138
143
[testenv:doc8]
144
+ deps =
145
+ -r requirements/tox/doc8_requirements.txt
139
146
commands =
140
- pip install --exists-action =w -r requirements/tox/doc8_requirements.txt
141
147
doc8 --ignore-path tests/data/serve_resources/mlflow/pytorch/data/pickle_module_info.txt
142
148
143
149
[testenv:black-format]
@@ -146,8 +152,9 @@ skip_install = true
146
152
setenv =
147
153
LC_ALL =C.UTF-8
148
154
LANG =C.UTF-8
155
+ deps =
156
+ -r requirements/tox/black_requirements.txt
149
157
commands =
150
- pip install --exists-action =w -r requirements/tox/black_requirements.txt
151
158
black ./
152
159
153
160
[testenv:black-check]
@@ -156,8 +163,9 @@ skip_install = true
156
163
setenv =
157
164
LC_ALL =C.UTF-8
158
165
LANG =C.UTF-8
166
+ deps =
167
+ -r requirements/tox/black_requirements.txt
159
168
commands =
160
- pip install --exists-action =w -r requirements/tox/black_requirements.txt
161
169
black --diff --color --check ./
162
170
163
171
[testenv:clean]
@@ -166,13 +174,20 @@ commands =
166
174
coverage erase
167
175
168
176
[testenv:typing]
177
+ # Do not skip installation here, the extras are needed for mypy to get type info
178
+ skip_install = false
179
+ extras =
180
+ all
181
+ deps =
182
+ -r requirements/tox/mypy_requirements.txt
169
183
commands =
170
- pip install --exists-action =w -r requirements/tox/mypy_requirements.txt
171
184
mypy src/sagemaker
172
185
173
186
[testenv:docstyle]
187
+ skip_install = true
188
+ deps =
189
+ -r requirements/tox/pydocstyle_requirements.txt
174
190
commands =
175
- pip install --exists-action =w -r requirements/tox/pydocstyle_requirements.txt
176
191
pydocstyle src/sagemaker
177
192
178
193
[testenv:collect-tests]
0 commit comments