Apply pylint's linting rules to bfxapi/tests/*.py.

This commit is contained in:
Davide Casale
2023-03-06 18:49:22 +01:00
parent 5c707d7929
commit af25f25d3b
10 changed files with 66 additions and 55 deletions

View File

@@ -31,8 +31,7 @@ class BfxWebsocketBucket:
self.handler = PublicChannelsHandler(event_emitter=self.event_emitter)
#pylint: disable-next=unused-argument
async def connect(self, index):
async def connect(self):
reconnection = False
async for websocket in websockets.connect(self.host):

View File

@@ -75,7 +75,7 @@ class BfxWebsocketClient:
for index in range(connections):
self.buckets += [BfxWebsocketBucket(self.host, self.event_emitter, self.on_open_events[index])]
tasks = [ bucket.connect(index) for index, bucket in enumerate(self.buckets) ]
tasks = [ bucket.connect() for bucket in self.buckets ]
tasks.append(self.__connect())

View File

@@ -1,4 +1,4 @@
#pylint: disable=invalid-name,redefined-builtin,too-many-arguments
#pylint: disable=redefined-builtin,too-many-arguments
from decimal import Decimal
from datetime import datetime