Skip to content

Commit 838a3c2

Browse files
committed
chore: Pin dependencies for linters
1 parent c067b79 commit 838a3c2

File tree

2 files changed

+24
-15
lines changed

2 files changed

+24
-15
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
bandit==1.7.0
2+
black==21.12b0
3+
doc8==0.10.1
4+
flake8==4.0.1
5+
flake8-bugbear==21.11.29
6+
flake8-docstrings==1.6.0
7+
flake8-print==4.0.0
8+
isort==5.10.1
9+
pyflakes==2.4.0
10+
pylint==2.12.2
11+
readme_renderer==32.0
12+
seed-isort-config==2.2.0
13+
vulture==2.3
14+
sphinx==4.3.2

tox.ini

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -149,15 +149,13 @@ commands =
149149
[testenv:flake8-tests]
150150
basepython = {[testenv:flake8]basepython}
151151
deps =
152-
flake8
153-
# https://github.com/JBKahn/flake8-print/pull/30
154-
flake8-print>=3.1.0
152+
-rdev_requirements/linter-requirements.txt
155153
commands =
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+
--ignore F811,E203,W503,D \
161159
test/
162160

163161
[testenv:flake8-examples]
@@ -176,8 +174,7 @@ commands =
176174
basepython = python3
177175
deps =
178176
{[testenv]deps}
179-
pyflakes
180-
pylint
177+
-rdev_requirements/linter-requirements.txt
181178
commands =
182179
pylint \
183180
--rcfile=src/pylintrc \
@@ -205,7 +202,7 @@ commands =
205202
[testenv:blacken-src]
206203
basepython = python3
207204
deps =
208-
black
205+
-rdev_requirements/linter-requirements.txt
209206
commands =
210207
black --line-length 120 \
211208
src/aws_encryption_sdk/ \
@@ -232,12 +229,12 @@ commands =
232229

233230
[testenv:isort-seed]
234231
basepython = python3
235-
deps = seed-isort-config
232+
deps = -rdev_requirements/linter-requirements.txt
236233
commands = seed-isort-config
237234

238235
[testenv:isort]
239236
basepython = python3
240-
deps = isort
237+
deps = -rdev_requirements/linter-requirements.txt
241238
commands = isort -rc \
242239
src \
243240
test \
@@ -264,25 +261,23 @@ commands =
264261
[testenv:doc8]
265262
basepython = python3
266263
deps =
267-
sphinx
268-
doc8
264+
-rdev_requirements/linter-requirements.txt
269265
commands = doc8 doc/index.rst README.rst CHANGELOG.rst
270266

271267
[testenv:readme]
272268
basepython = python3
273-
deps = readme_renderer
269+
deps = -rdev_requirements/linter-requirements.txt
274270
commands = python setup.py check -r -s
275271

276272
[testenv:bandit]
277273
basepython = python3
278-
deps =
279-
bandit>=1.5.1
274+
deps = -rdev_requirements/linter-requirements.txt
280275
commands = bandit -r src/aws_encryption_sdk/
281276

282277
# Prone to false positives: only run independently
283278
[testenv:vulture]
284279
basepython = python3
285-
deps = vulture
280+
deps = -rdev_requirements/linter-requirements.txt
286281
commands = vulture src/aws_encryption_sdk/
287282

288283
[testenv:linters]

0 commit comments

Comments
 (0)