diff --git a/src/azure-cli/azure/cli/command_modules/keyvault/custom.py b/src/azure-cli/azure/cli/command_modules/keyvault/custom.py index 583c125d070..4445e9dfe84 100644 --- a/src/azure-cli/azure/cli/command_modules/keyvault/custom.py +++ b/src/azure-cli/azure/cli/command_modules/keyvault/custom.py @@ -751,7 +751,7 @@ def _jwk_to_dict(jwk): return d -def _extract_rsa_public_key_from_jwk(jwk_dict): +def _extract_rsa_public_key_from_jwk(jwk_dict): # pylint: disable=line-too-long # Please refer to: https://github.com/mpdavis/python-jose/blob/eed086d7650ccbd4ea8b555157aff3b1b99f14b9/jose/backends/cryptography_backend.py#L249-L254 e = jwk_dict.get('e', 256) n = jwk_dict.get('n') @@ -759,7 +759,7 @@ def _extract_rsa_public_key_from_jwk(jwk_dict): return public.public_key(default_backend()) -def _extract_ec_public_key_from_jwk(jwk_dict): +def _extract_ec_public_key_from_jwk(jwk_dict): # pylint: disable=line-too-long # Please refer to: https://github.com/mpdavis/python-jose/blob/eed086d7650ccbd4ea8b555157aff3b1b99f14b9/jose/backends/cryptography_backend.py#L81-L100 if not all(k in jwk_dict for k in ['x', 'y', 'crv']): raise CLIError('Invalid EC key: missing properties(x, y, crv)') @@ -802,7 +802,7 @@ def _to_der(k): format=PublicFormat.SubjectPublicKeyInfo ) - def _to_pem(k): + def _to_pem(k): # pylint: disable=line-too-long # Please refer to: https://github.com/mpdavis/python-jose/blob/eed086d7650ccbd4ea8b555157aff3b1b99f14b9/jose/backends/cryptography_backend.py#L329-L332 return k.public_bytes( encoding=Encoding.PEM,