chore: blacken (#375)
diff --git a/google/auth/crypt/base.py b/google/auth/crypt/base.py
index c6c0427..ceb6e9c 100644
--- a/google/auth/crypt/base.py
+++ b/google/auth/crypt/base.py
@@ -21,8 +21,8 @@
import six
-_JSON_FILE_PRIVATE_KEY = 'private_key'
-_JSON_FILE_PRIVATE_KEY_ID = 'private_key_id'
+_JSON_FILE_PRIVATE_KEY = "private_key"
+_JSON_FILE_PRIVATE_KEY_ID = "private_key_id"
@six.add_metaclass(abc.ABCMeta)
@@ -43,7 +43,7 @@
"""
# pylint: disable=missing-raises-doc,redundant-returns-doc
# (pylint doesn't recognize that this is abstract)
- raise NotImplementedError('Verify must be implemented')
+ raise NotImplementedError("Verify must be implemented")
@six.add_metaclass(abc.ABCMeta)
@@ -53,7 +53,7 @@
@abc.abstractproperty
def key_id(self):
"""Optional[str]: The key ID used to identify this private key."""
- raise NotImplementedError('Key id must be implemented')
+ raise NotImplementedError("Key id must be implemented")
@abc.abstractmethod
def sign(self, message):
@@ -67,7 +67,7 @@
"""
# pylint: disable=missing-raises-doc,redundant-returns-doc
# (pylint doesn't recognize that this is abstract)
- raise NotImplementedError('Sign must be implemented')
+ raise NotImplementedError("Sign must be implemented")
@six.add_metaclass(abc.ABCMeta)
@@ -88,7 +88,7 @@
Raises:
ValueError: If the key cannot be parsed.
"""
- raise NotImplementedError('from_string must be implemented')
+ raise NotImplementedError("from_string must be implemented")
@classmethod
def from_service_account_info(cls, info):
@@ -107,12 +107,12 @@
"""
if _JSON_FILE_PRIVATE_KEY not in info:
raise ValueError(
- 'The private_key field was not found in the service account '
- 'info.')
+ "The private_key field was not found in the service account " "info."
+ )
return cls.from_string(
- info[_JSON_FILE_PRIVATE_KEY],
- info.get(_JSON_FILE_PRIVATE_KEY_ID))
+ info[_JSON_FILE_PRIVATE_KEY], info.get(_JSON_FILE_PRIVATE_KEY_ID)
+ )
@classmethod
def from_service_account_file(cls, filename):
@@ -125,7 +125,7 @@
Returns:
google.auth.crypt.Signer: The constructed signer.
"""
- with io.open(filename, 'r', encoding='utf-8') as json_file:
+ with io.open(filename, "r", encoding="utf-8") as json_file:
data = json.load(json_file)
return cls.from_service_account_info(data)