minor: reformat a bunch of files to try to make backends more cohesive, add static dict for get_data instead of using inspect, refactored graphql into a bosminer web API, and added supports_autotuning and supports_shutdown attributes to miners.

This commit is contained in:
UpstreamData
2023-03-28 11:39:03 -06:00
parent 63c8fe6868
commit aa6dc74471
239 changed files with 2106 additions and 4833 deletions

View File

@@ -19,8 +19,8 @@ import sys
import unittest
import warnings
from pyasic.miners.backends import CGMiner # noqa
from pyasic.miners.base import BaseMiner
from pyasic.miners.btc._backends import CGMiner # noqa
from pyasic.miners.miner_factory import MINER_CLASSES, MinerFactory
@@ -45,10 +45,9 @@ class MinersTest(unittest.TestCase):
backends = [
list(
inspect.getmembers(
sys.modules[f"pyasic.miners.{algo}._backends"], inspect.isclass
sys.modules[f"pyasic.miners.backends"], inspect.isclass
)
)
for algo in ["btc", "zec", "ltc"]
]
backends = [item for sublist in backends for item in sublist]
for backend in backends: