mirror of
https://github.com/aljazceru/bitfinex-api-py.git
synced 2025-12-18 14:24:21 +01:00
Fix flake8 configuration to respect Black's 10% rule.
This commit is contained in:
2
.flake8
2
.flake8
@@ -1,5 +1,5 @@
|
||||
[flake8]
|
||||
max-line-length = 88
|
||||
max-line-length = 80
|
||||
extend-select = B950
|
||||
extend-ignore = E203,E501,E701
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user