Skip to content

Commit 0f53225

Browse files
committed
fix flake8, pylint
1 parent 0401aee commit 0f53225

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

examples/test/legacy/v3_default_cmm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class V3DefaultCryptoMaterialsManager(CryptoMaterialsManager):
4040

4141
master_key_provider = attr.ib(validator=attr.validators.instance_of(MasterKeyProvider))
4242

43-
def _generate_signing_key_and_update_encryption_context(self, algorithm, encryption_context):
43+
def _generate_signing_key_and_update_encryption_context(self, algorithm, encryption_context): # pylint: disable=no-self-use
4444
"""Generates a signing key based on the provided algorithm.
4545
4646
:param algorithm: Algorithm for which to generate signing key
@@ -111,7 +111,7 @@ def get_encryption_materials(self, request):
111111
signing_key=signing_key,
112112
)
113113

114-
def _load_verification_key_from_encryption_context(self, algorithm, encryption_context):
114+
def _load_verification_key_from_encryption_context(self, algorithm, encryption_context): # pylint: disable=no-self-use
115115
"""Loads the verification key from the encryption context if used by algorithm suite.
116116
117117
:param algorithm: Algorithm for which to generate signing key

tox.ini

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,12 @@ deps = {[testenv:flake8]deps}
169169
commands =
170170
flake8 examples/src/
171171
flake8 \
172-
# Ingore D103 missing docstring errors in tests (test names should be self-documenting)
172+
# Ignore D103 missing docstring errors in tests (test names should be self-documenting)
173+
# Ignore D401 First line should be in imperative mood
174+
# Ignoring D205, D400 because of false positives
173175
# E203 is not PEP8 compliant https://github.com/ambv/black#slices
174176
# W503 is not PEP8 compliant https://github.com/ambv/black#line-breaks--binary-operators
175-
--ignore D103,E203,W503 \
177+
--ignore D103,D401,D205,D400,E203,W503 \
176178
examples/test/
177179

178180
[testenv:pylint]

0 commit comments

Comments
 (0)