From 13b865c917e232816b6aef938a4c58b5185ffd49 Mon Sep 17 00:00:00 2001 From: hscott Date: Thu, 9 Jan 2025 14:30:21 -0500 Subject: [PATCH] pre-commit hooks --- Makefile | 2 -- argparse_test.py | 13 +++++++++---- precog/miners/miner.py | 1 - precog/utils/classes.py | 1 - precog/utils/config.py | 9 +++++---- precog/utils/general.py | 1 - precog/validators/validator.py | 1 - 7 files changed, 14 insertions(+), 14 deletions(-) diff --git a/Makefile b/Makefile index 69da366..f36e0e3 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,3 @@ -ENV_FILE ?= .env.validator - include $(ENV_FILE) export diff --git a/argparse_test.py b/argparse_test.py index 02bb58c..cc5b964 100644 --- a/argparse_test.py +++ b/argparse_test.py @@ -1,14 +1,19 @@ import argparse -from precog.utils.config import config, to_string import subprocess +from precog.utils.config import config, to_string parser = argparse.ArgumentParser() config = config(parser) -start_command = ["pm2", "start", "--name", f"{config.neuron.name}", - "python3 -m precog.validators.validator " + to_string(config)] +start_command = [ + "pm2", + "start", + "--name", + f"{config.neuron.name}", + "python3 -m precog.validators.validator " + to_string(config), +] print(start_command) -subprocess.run(start_command) \ No newline at end of file +subprocess.run(start_command) diff --git a/precog/miners/miner.py b/precog/miners/miner.py index a9da40c..69faac9 100644 --- a/precog/miners/miner.py +++ b/precog/miners/miner.py @@ -14,7 +14,6 @@ from precog.utils.config import config - class Miner: """ Optimized Miner to handle ultra-fast requests with low latency. diff --git a/precog/utils/classes.py b/precog/utils/classes.py index 61bf812..21ef038 100644 --- a/precog/utils/classes.py +++ b/precog/utils/classes.py @@ -1,4 +1,3 @@ -import argparse from datetime import datetime, timedelta from typing import List diff --git a/precog/utils/config.py b/precog/utils/config.py index 39f9f4b..a558fc6 100644 --- a/precog/utils/config.py +++ b/precog/utils/config.py @@ -167,11 +167,12 @@ def add_miner_args(parser): help="Wandb entity to log to.", ) - parser.add_argument("--forward_function", - type=str, - default="base_miner", + parser.add_argument( + "--forward_function", + type=str, + default="base_miner", help="name of the forward function to use", - ) + ) def add_validator_args(parser): diff --git a/precog/utils/general.py b/precog/utils/general.py index 03dbd79..975ea6e 100644 --- a/precog/utils/general.py +++ b/precog/utils/general.py @@ -1,4 +1,3 @@ -import argparse import asyncio import re import time diff --git a/precog/validators/validator.py b/precog/validators/validator.py index bff4dcb..4a4c16a 100755 --- a/precog/validators/validator.py +++ b/precog/validators/validator.py @@ -2,7 +2,6 @@ import asyncio from pathlib import Path -import bittensor as bt from precog.utils.config import config from precog.validators.weight_setter import weight_setter