Skip to content

Commit 6e5cb68

Browse files
committed
chore(deps): fix linting
1 parent 4815737 commit 6e5cb68

File tree

5 files changed

+23
-41
lines changed

5 files changed

+23
-41
lines changed
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
bandit==1.7.0
2-
black==21.12b0
1+
bandit==1.7.4
2+
black==22.3.0
33
doc8==0.10.1
44
flake8==4.0.1
5-
flake8-bugbear==21.11.29
5+
flake8-bugbear==22.1.11
66
flake8-docstrings==1.6.0
77
flake8-print==4.0.0
88
isort==5.10.1
99
pyflakes==2.4.0
10-
pylint==2.12.2
11-
readme_renderer==32.0
10+
pylint==2.13.5
11+
readme_renderer==34.0
1212
seed-isort-config==2.2.0
1313
vulture==2.3
1414
sphinx==4.4.0
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
pypi-parker==0.1.2
2+
setuptools==62.0.0
3+
twine==3.8.0
4+
wheel==0.37.1

test/unit/test_crypto_authentication_signer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Unit test suite for ``aws_encryption_sdk.internal.crypto.authentication.Signer``."""
22
import pytest
3-
from mock import MagicMock, sentinel, patch
3+
from mock import MagicMock, sentinel
44
from pytest_mock import mocker # noqa pylint: disable=unused-import
55

66
import aws_encryption_sdk.internal.crypto.authentication

test/unit/test_crypto_authentication_verifier.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
import aws_encryption_sdk.internal.crypto.authentication
1919
from aws_encryption_sdk.internal.crypto.authentication import Verifier
2020
from aws_encryption_sdk.internal.defaults import ALGORITHM
21-
from cryptography.hazmat.primitives.asymmetric import ec
2221

2322
from .test_crypto import VALUES
2423

test_vector_handlers/tox.ini

Lines changed: 13 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -117,12 +117,7 @@ commands =
117117
# Linters
118118
[testenv:flake8]
119119
basepython = python3
120-
deps =
121-
..
122-
flake8
123-
flake8-docstrings
124-
# https://github.com/JBKahn/flake8-print/pull/30
125-
flake8-print>=3.1.0
120+
deps = -r../dev_requirements/linter-requirements.txt
126121
commands =
127122
flake8 \
128123
src/awses_test_vectors/ \
@@ -132,25 +127,21 @@ commands =
132127

133128
[testenv:flake8-tests]
134129
basepython = {[testenv:flake8]basepython}
135-
deps =
136-
..
137-
flake8
130+
deps = -r../dev_requirements/linter-requirements.txt
138131
commands =
139132
flake8 \
140133
# Ignore F811 redefinition errors in tests (breaks with pytest-mock use)
141134
# E203 is not PEP8 compliant https://github.com/ambv/black#slices
142135
# W503 is not PEP8 compliant https://github.com/ambv/black#line-breaks--binary-operators
143-
--ignore F811,E203,W503 \
136+
--ignore F811,E203,W503,D \
144137
test/ \
145138
{posargs}
146139

147140
[testenv:pylint]
148141
basepython = python3
149142
deps =
150143
-rtest/requirements.txt
151-
..
152-
pyflakes
153-
pylint
144+
-r../dev_requirements/linter-requirements.txt
154145
commands =
155146
pylint \
156147
--rcfile=src/pylintrc \
@@ -169,8 +160,7 @@ commands =
169160

170161
[testenv:blacken-src]
171162
basepython = python3
172-
deps =
173-
black
163+
deps = -r../dev_requirements/linter-requirements.txt
174164
commands =
175165
black --line-length 120 \
176166
src/awses_test_vectors/ \
@@ -196,14 +186,12 @@ commands =
196186

197187
[testenv:isort-seed]
198188
basepython = python3
199-
deps = seed-isort-config
189+
deps = -r../dev_requirements/linter-requirements.txt
200190
commands = seed-isort-config
201191

202192
[testenv:isort]
203193
basepython = python3
204-
deps =
205-
isort
206-
..
194+
deps = -r../dev_requirements/linter-requirements.txt
207195
commands = isort -rc \
208196
src \
209197
test \
@@ -228,29 +216,23 @@ commands =
228216

229217
[testenv:doc8]
230218
basepython = python3
231-
deps =
232-
sphinx
233-
doc8
219+
deps = -r../dev_requirements/linter-requirements.txt
234220
commands = doc8 doc/index.rst README.rst CHANGELOG.rst
235221

236222
[testenv:readme]
237223
basepython = python3
238-
deps =
239-
..
240-
readme_renderer
224+
deps = -r../dev_requirements/linter-requirements.txt
241225
commands = python setup.py check -r -s
242226

243227
[testenv:bandit]
244228
basepython = python3
245-
deps =
246-
..
247-
bandit>=1.5.1
229+
deps = -r../dev_requirements/linter-requirements.txt
248230
commands = bandit -r src/awses_test_vectors/
249231

250232
# Prone to false positives: only run independently
251233
[testenv:vulture]
252234
basepython = python3
253-
deps = vulture
235+
deps = -r../dev_requirements/linter-requirements.txt
254236
commands = vulture src/awses_test_vectors/
255237

256238
[testenv:linters]
@@ -296,18 +278,15 @@ commands =
296278
[testenv:park]
297279
basepython = python3
298280
skip_install = true
299-
deps =
300-
pypi-parker
301-
setuptools
281+
deps = -r../dev_requirements/release-requirements.txt
302282
commands = python setup.py park
303283

304284
[testenv:build]
305285
basepython = python3
306286
skip_install = true
307287
deps =
308288
{[testenv:docs]deps}
309-
wheel
310-
setuptools
289+
-r../dev_requirements/release-requirements.txt
311290
commands =
312291
{[testenv:docs]commands}
313292
python setup.py sdist bdist_wheel

0 commit comments

Comments
 (0)