@@ -216,13 +216,7 @@ commands =
216
216
[testenv:flake8]
217
217
basepython = python3
218
218
deps =
219
- flake8
220
- flake8-docstrings
221
- flake8-isort
222
- # https://github.com/PyCQA/pydocstyle/issues/375
223
- pydocstyle<4.0.0
224
- # https://github.com/JBKahn/flake8-print/pull/30
225
- flake8-print>=3.1.0
219
+ -rdev_requirements/linter-requirements.txt
226
220
commands =
227
221
flake8 \
228
222
src/dynamodb_encryption_sdk/ \
@@ -238,7 +232,7 @@ commands =
238
232
# Ignore D101-107 docstring requirements for tests
239
233
# E203 is not PEP8 compliant https://github.com/ambv/black#slices
240
234
# W503 is not PEP8 compliant https://github.com/ambv/black#line-breaks--binary-operators
241
- --ignore F811,D101,D102,D103,D107,E203,W503 \
235
+ --ignore F811,D101,D102,D103,D107,E203,W503,B011 \
242
236
test/
243
237
244
238
[testenv:flake8-examples]
@@ -261,8 +255,7 @@ commands =
261
255
basepython = python3
262
256
deps =
263
257
{[testenv]deps}
264
- pyflakes
265
- pylint
258
+ -rdev_requirements/linter-requirements.txt
266
259
commands =
267
260
pylint \
268
261
--rcfile =src/pylintrc \
@@ -291,7 +284,7 @@ commands =
291
284
[testenv:blacken-src]
292
285
basepython = python3
293
286
deps =
294
- black
287
+ -rdev_requirements/linter-requirements.txt
295
288
commands =
296
289
black --line-length 120 \
297
290
src/dynamodb_encryption_sdk/ \
@@ -324,9 +317,8 @@ commands = seed-isort-config
324
317
325
318
[testenv:isort]
326
319
basepython = python3
327
- # We need >=5.0.0 because
328
- # several configuration settings changed with 5.0.0
329
- deps = isort>=5.0.0
320
+ deps =
321
+ -rdev_requirements/linter-requirements.txt
330
322
commands = isort \
331
323
src \
332
324
test \
@@ -366,27 +358,28 @@ commands =
366
358
basepython = python3
367
359
whitelist_externals = {[testenv:resetdocs]whitelist_externals}
368
360
deps =
369
- sphinx
370
- doc8
371
- commands =
361
+ -rdev_requirements/linter-requirements.txt
362
+ commands =
372
363
{[testenv:resetdocs]commands}
373
364
doc8 doc/index.rst doc/lib/ README.rst CHANGELOG.rst
374
-
375
365
376
366
[testenv:readme]
377
367
basepython = python3
378
- deps = readme_renderer
368
+ deps =
369
+ -rdev_requirements/linter-requirements.txt
379
370
commands = python setup.py check -r -s
380
371
381
372
[testenv:bandit]
382
373
basepython = python3
383
- deps = bandit
374
+ deps =
375
+ -rdev_requirements/linter-requirements.txt
384
376
commands = bandit -r src/dynamodb_encryption_sdk/
385
377
386
378
# Prone to false positives: only run independently
387
379
[testenv:vulture]
388
380
basepython = python3
389
- deps = vulture
381
+ deps =
382
+ -rdev_requirements/linter-requirements.txt
390
383
commands = vulture src/dynamodb_encryption_sdk/
391
384
392
385
[testenv:linters]
0 commit comments