@@ -149,15 +149,14 @@ commands =
149
149
[testenv:flake8-tests]
150
150
basepython = {[testenv:flake8]basepython}
151
151
deps =
152
- flake8
153
- # https://github.com/JBKahn/flake8-print/pull/30
154
- flake8-print>=3.1.0
152
+ -rdev_requirements/linter-requirements.txt
155
153
commands =
156
154
flake8 \
157
155
# Ignore F811 redefinition errors in tests (breaks with pytest-mock use)
158
156
# E203 is not PEP8 compliant https://github.com/ambv/black#slices
159
157
# W503 is not PEP8 compliant https://github.com/ambv/black#line-breaks--binary-operators
160
- --ignore F811,E203,W503 \
158
+ # D is for Documentation. We do not care if Test classes and their methods have docstrings
159
+ --ignore F811,E203,W503,D \
161
160
test/
162
161
163
162
[testenv:flake8-examples]
@@ -176,8 +175,7 @@ commands =
176
175
basepython = python3
177
176
deps =
178
177
{[testenv]deps}
179
- pyflakes
180
- pylint
178
+ -rdev_requirements/linter-requirements.txt
181
179
commands =
182
180
pylint \
183
181
--rcfile =src/pylintrc \
@@ -205,7 +203,7 @@ commands =
205
203
[testenv:blacken-src]
206
204
basepython = python3
207
205
deps =
208
- black
206
+ -rdev_requirements/linter-requirements.txt
209
207
commands =
210
208
black --line-length 120 \
211
209
src/aws_encryption_sdk/ \
@@ -232,12 +230,12 @@ commands =
232
230
233
231
[testenv:isort-seed]
234
232
basepython = python3
235
- deps = seed-isort-config
233
+ deps = -rdev_requirements/linter-requirements.txt
236
234
commands = seed-isort-config
237
235
238
236
[testenv:isort]
239
237
basepython = python3
240
- deps = isort
238
+ deps = -rdev_requirements/linter-requirements.txt
241
239
commands = isort -rc \
242
240
src \
243
241
test \
@@ -264,25 +262,23 @@ commands =
264
262
[testenv:doc8]
265
263
basepython = python3
266
264
deps =
267
- sphinx
268
- doc8
265
+ -rdev_requirements/linter-requirements.txt
269
266
commands = doc8 doc/index.rst README.rst CHANGELOG.rst
270
267
271
268
[testenv:readme]
272
269
basepython = python3
273
- deps = readme_renderer
270
+ deps = -rdev_requirements/linter-requirements.txt
274
271
commands = python setup.py check -r -s
275
272
276
273
[testenv:bandit]
277
274
basepython = python3
278
- deps =
279
- bandit>=1.5.1
275
+ deps = -rdev_requirements/linter-requirements.txt
280
276
commands = bandit -r src/aws_encryption_sdk/
281
277
282
278
# Prone to false positives: only run independently
283
279
[testenv:vulture]
284
280
basepython = python3
285
- deps = vulture
281
+ deps = -rdev_requirements/linter-requirements.txt
286
282
commands = vulture src/aws_encryption_sdk/
287
283
288
284
[testenv:linters]
0 commit comments