Fix flake8 configuration to respect Black's 10% rule.

This commit is contained in:
Davide Casale
2024-02-27 18:14:47 +01:00
parent e2257561d9
commit 1a6f4eaa21
3 changed files with 4 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
[flake8]
max-line-length = 88
max-line-length = 80
extend-select = B950
extend-ignore = E203,E501,E701

View File

@@ -37,11 +37,11 @@ class Client:
}
elif api_key:
raise IncompleteCredentialError(
"You must provide both an API-KEY and an API-SECRET (missing API-KEY)."
"You must provide both API-KEY and API-SECRET (missing API-KEY)."
)
elif api_secret:
raise IncompleteCredentialError(
"You must provide both an API-KEY and an API-SECRET (missing API-SECRET)."
"You must provide both API-KEY and API-SECRET (missing API-SECRET)."
)
self.rest = BfxRestInterface(rest_host, api_key, api_secret)

View File

@@ -35,7 +35,7 @@ class Middleware:
def __build_authentication_headers(self, endpoint: str, data: Optional[str] = None):
assert isinstance(self.api_key, str) and isinstance(
self.api_secret, str
), "API_KEY and API_SECRET must be both str to call __build_authentication_headers"
), "API_KEY and API_SECRET must be both strings"
nonce = str(round(time.time() * 1_000_000))