Skip to content

Commit 889dd25

Browse files
author
Wayonb
authored
[miscellaneous] fix: lint failing
1 parent e463a47 commit 889dd25

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

history/downloader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def download(self, start_date, end_date, output_filepath):
3333
log.debug(f'[{output_filepath}] download complete!')
3434

3535
def _download_batch(self, mode, start_date, end_date, output_filepath, csv_writer):
36-
# pylint: disable=too-many-arguments
36+
# pylint: disable=too-many-arguments, too-many-positional-arguments
3737

3838
api_client = create_blockchain_api_client(self.resources)
3939
downloader = api_client.get_harvests if 'harvests' == mode else api_client.get_transfers

lint_requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
isort==5.13.2
1+
isort==6.0.1
22
pycodestyle==2.14.0
3-
pylint==3.1.0
3+
pylint==3.3.8

network/nodes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class NodeDownloader:
1818
# pylint: disable=too-many-instance-attributes
1919

2020
def __init__(self, resources, thread_count, timeout, network_name, certificate_directory):
21-
# pylint: disable=too-many-arguments
21+
# pylint: disable=too-many-arguments, too-many-positional-arguments
2222

2323
self.resources = resources
2424
self.thread_count = thread_count
@@ -76,6 +76,7 @@ def _discover_thread(self):
7676
)
7777

7878
is_reachable = False
79+
json_peers = []
7980
try:
8081
json_node = api_client.get_node_info()
8182
json_node['extraData'] = {'balance': 0, 'height': 0, 'finalizedHeight': 0}
@@ -93,7 +94,6 @@ def _discover_thread(self):
9394
log.warning(
9495
f'failed to load peers from {api_client.node_host}:{api_client.node_port} (reachable node? {is_reachable})\n{ex}'
9596
)
96-
json_peers = []
9797

9898
finally:
9999
with self.lock:

0 commit comments

Comments
 (0)