@@ -134,26 +134,21 @@ commands = {[testenv:test-upstream-requirements-base]commands}
134
134
[testenv:flake8]
135
135
basepython = python3
136
136
deps =
137
- flake8
138
- flake8-docstrings>=1.5.0
139
- # https://github.com/JBKahn/flake8-print/pull/30
140
- flake8-print>=3.1.0
141
- flake8-bugbear
137
+ -rdev_requirements/linter-requirements.txt
142
138
commands =
143
139
flake8 src/aws_encryption_sdk/ setup.py
144
140
145
141
[testenv:flake8-tests]
146
142
basepython = {[testenv:flake8]basepython}
147
143
deps =
148
- flake8
149
- # https://github.com/JBKahn/flake8-print/pull/30
150
- flake8-print>=3.1.0
144
+ -rdev_requirements/linter-requirements.txt
151
145
commands =
152
146
flake8 \
153
147
# Ignore F811 redefinition errors in tests (breaks with pytest-mock use)
154
148
# E203 is not PEP8 compliant https://github.com/ambv/black#slices
155
149
# W503 is not PEP8 compliant https://github.com/ambv/black#line-breaks--binary-operators
156
- --ignore F811,E203,W503 \
150
+ # D is for Documentation. We do not care if Test classes and their methods have docstrings
151
+ --ignore F811,E203,W503,D \
157
152
test/
158
153
159
154
[testenv:flake8-examples]
@@ -172,8 +167,7 @@ commands =
172
167
basepython = python3
173
168
deps =
174
169
{[testenv]deps}
175
- pyflakes
176
- pylint
170
+ -rdev_requirements/linter-requirements.txt
177
171
commands =
178
172
pylint \
179
173
--rcfile =src/pylintrc \
@@ -200,7 +194,7 @@ commands =
200
194
[testenv:blacken-src]
201
195
basepython = python3
202
196
deps =
203
- black
197
+ -rdev_requirements/linter-requirements.txt
204
198
commands =
205
199
black --line-length 120 \
206
200
src/aws_encryption_sdk/ \
@@ -227,12 +221,12 @@ commands =
227
221
228
222
[testenv:isort-seed]
229
223
basepython = python3
230
- deps = seed-isort-config
224
+ deps = -rdev_requirements/linter-requirements.txt
231
225
commands = seed-isort-config
232
226
233
227
[testenv:isort]
234
228
basepython = python3
235
- deps = isort
229
+ deps = -rdev_requirements/linter-requirements.txt
236
230
commands = isort -rc \
237
231
src \
238
232
test \
@@ -259,25 +253,24 @@ commands =
259
253
[testenv:doc8]
260
254
basepython = python3
261
255
deps =
262
- sphinx
263
- doc8
256
+ -rdev_requirements/linter-requirements.txt
264
257
commands = doc8 doc/index.rst README.rst CHANGELOG.rst
265
258
266
259
[testenv:readme]
267
260
basepython = python3
268
- deps = readme_renderer
261
+ deps = -rdev_requirements/linter-requirements.txt
269
262
commands = python setup.py check -r -s
270
263
271
264
[testenv:bandit]
272
265
basepython = python3
273
- deps =
274
- bandit>=1.5.1
266
+ deps =
267
+ -rdev_requirements/linter-requirements.txt
275
268
commands = bandit -r src/aws_encryption_sdk/
276
269
277
270
# Prone to false positives: only run independently
278
271
[testenv:vulture]
279
272
basepython = python3
280
- deps = vulture
273
+ deps = -rdev_requirements/linter-requirements.txt
281
274
commands = vulture src/aws_encryption_sdk/
282
275
283
276
[testenv:linters]
0 commit comments