bug: fix some issues with dependencies, format, and remove poetry.lock

This commit is contained in:
UpstreamData
2023-05-12 08:31:56 -06:00
parent 827834a119
commit db1beceb2e
11 changed files with 9 additions and 987 deletions

View File

@@ -14,7 +14,6 @@
# limitations under the License. -
# ------------------------------------------------------------------------------
import logging
from collections import namedtuple
from typing import List, Optional, Tuple

View File

@@ -18,8 +18,6 @@ import logging
from collections import namedtuple
from typing import List, Optional, Tuple
import asyncssh
from pyasic.API.bmminer import BMMinerAPI
from pyasic.config import MinerConfig
from pyasic.data import Fan, HashBoard

View File

@@ -18,7 +18,6 @@ import logging
from collections import namedtuple
from typing import List, Optional, Tuple, Union
import asyncssh
import toml
from pyasic.API.bosminer import BOSMinerAPI

View File

@@ -17,8 +17,6 @@
import logging
from typing import List, Optional, Tuple
import asyncssh
from pyasic.config import MinerConfig
from pyasic.data import Fan, HashBoard, MinerData
from pyasic.data.error_codes import MinerErrorData

View File

@@ -18,8 +18,6 @@ import logging
from collections import namedtuple
from typing import List, Optional, Tuple
import asyncssh
from pyasic.API.cgminer import CGMinerAPI
from pyasic.config import MinerConfig
from pyasic.data import Fan, HashBoard

View File

@@ -14,7 +14,6 @@
# limitations under the License. -
# ------------------------------------------------------------------------------
import logging
from typing import Optional
from pyasic.errors import APIError

View File

@@ -421,7 +421,7 @@ class BaseMiner(ABC):
else:
if not web_command_data == {"multicommand": False}:
args_to_send[arg_name] = web_command_data
except (KeyError, IndexError) as e:
except (KeyError, IndexError):
continue
function = getattr(self, self.data_locations[data_name]["cmd"])

View File

@@ -26,8 +26,11 @@ from pyasic.miners.base import BaseMiner
class UnknownMiner(BaseMiner):
def __init__(
self, ip: str, *args, **kwargs
) -> None: # noqa - ignore *args and **kwargs for signature consistency
self,
ip: str,
*args,
**kwargs, # noqa - ignore *args and **kwargs for signature consistency
) -> None:
super().__init__(ip)
self.ip = ip
self.api = UnknownAPI(ip)