@@ -149,15 +149,14 @@ commands =
149149[testenv:flake8-tests]
150150basepython = {[testenv:flake8]basepython}
151151deps =
152- flake8
153- # https://github.com/JBKahn/flake8-print/pull/30
154- flake8-print>=3.1.0
152+ -rdev_requirements/linter-requirements.txt
155153commands =
156154 flake8 \
157155 # Ignore F811 redefinition errors in tests (breaks with pytest-mock use)
158156 # E203 is not PEP8 compliant https://github.com/ambv/black#slices
159157 # 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 \
161160 test/
162161
163162[testenv:flake8-examples]
@@ -176,8 +175,7 @@ commands =
176175basepython = python3
177176deps =
178177 {[testenv]deps}
179- pyflakes
180- pylint
178+ -rdev_requirements/linter-requirements.txt
181179commands =
182180 pylint \
183181 --rcfile =src/pylintrc \
@@ -205,7 +203,7 @@ commands =
205203[testenv:blacken-src]
206204basepython = python3
207205deps =
208- black
206+ -rdev_requirements/linter-requirements.txt
209207commands =
210208 black --line-length 120 \
211209 src/aws_encryption_sdk/ \
@@ -232,12 +230,12 @@ commands =
232230
233231[testenv:isort-seed]
234232basepython = python3
235- deps = seed-isort-config
233+ deps = -rdev_requirements/linter-requirements.txt
236234commands = seed-isort-config
237235
238236[testenv:isort]
239237basepython = python3
240- deps = isort
238+ deps = -rdev_requirements/linter-requirements.txt
241239commands = isort -rc \
242240 src \
243241 test \
@@ -264,25 +262,23 @@ commands =
264262[testenv:doc8]
265263basepython = python3
266264deps =
267- sphinx
268- doc8
265+ -rdev_requirements/linter-requirements.txt
269266commands = doc8 doc/index.rst README.rst CHANGELOG.rst
270267
271268[testenv:readme]
272269basepython = python3
273- deps = readme_renderer
270+ deps = -rdev_requirements/linter-requirements.txt
274271commands = python setup.py check -r -s
275272
276273[testenv:bandit]
277274basepython = python3
278- deps =
279- bandit>=1.5.1
275+ deps = -rdev_requirements/linter-requirements.txt
280276commands = bandit -r src/aws_encryption_sdk/
281277
282278# Prone to false positives: only run independently
283279[testenv:vulture]
284280basepython = python3
285- deps = vulture
281+ deps = -rdev_requirements/linter-requirements.txt
286282commands = vulture src/aws_encryption_sdk/
287283
288284[testenv:linters]
0 commit comments