From 4675678d0d29be69b32c15a80d3d85d22f2f0e1a Mon Sep 17 00:00:00 2001 From: derekpierre Date: Wed, 17 Jul 2024 11:46:31 -0400 Subject: [PATCH] Fix issues found by ruff during CI. --- atxm/machine.py | 3 ++- atxm/strategies.py | 3 +-- atxm/tracker.py | 2 +- atxm/utils.py | 3 +-- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/atxm/machine.py b/atxm/machine.py index 04feadb..6ed1992 100644 --- a/atxm/machine.py +++ b/atxm/machine.py @@ -25,11 +25,12 @@ _get_average_blocktime, _get_confirmations, _get_receipt, - _process_send_raw_transaction_exception, _is_recoverable_send_tx_error, _make_tx_params, + _process_send_raw_transaction_exception, fire_hook, ) + from .logging import log diff --git a/atxm/strategies.py b/atxm/strategies.py index 7151d8f..aff734e 100644 --- a/atxm/strategies.py +++ b/atxm/strategies.py @@ -1,6 +1,5 @@ -import time - import math +import time from abc import ABC from datetime import datetime, timedelta from typing import Optional, Tuple diff --git a/atxm/tracker.py b/atxm/tracker.py index 85710ec..e8bccfa 100644 --- a/atxm/tracker.py +++ b/atxm/tracker.py @@ -11,11 +11,11 @@ from atxm.exceptions import InsufficientFunds, TransactionFaulted from atxm.logging import log from atxm.tx import ( + FaultedTx, FinalizedTx, FutureTx, PendingTx, TxHash, - FaultedTx, ) from atxm.utils import fire_hook diff --git a/atxm/utils.py b/atxm/utils.py index 05c407d..df87a70 100644 --- a/atxm/utils.py +++ b/atxm/utils.py @@ -11,8 +11,7 @@ TooManyRequests, TransactionNotFound, ) -from web3.types import RPCError, TxData, TxParams -from web3.types import TxReceipt, Wei +from web3.types import RPCError, TxData, TxParams, TxReceipt, Wei from atxm.exceptions import InsufficientFunds, RPCException from atxm.logging import log