Skip to content

Commit

Permalink
pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
hscott-yuma committed Jan 9, 2025
1 parent e8b13e0 commit 13b865c
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
2 changes: 0 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
ENV_FILE ?= .env.validator

include $(ENV_FILE)
export

Expand Down
13 changes: 9 additions & 4 deletions argparse_test.py
Original file line number Diff line number Diff line change
@@ -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)
subprocess.run(start_command)
1 change: 0 additions & 1 deletion precog/miners/miner.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
from precog.utils.config import config



class Miner:
"""
Optimized Miner to handle ultra-fast requests with low latency.
Expand Down
1 change: 0 additions & 1 deletion precog/utils/classes.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import argparse
from datetime import datetime, timedelta
from typing import List

Expand Down
9 changes: 5 additions & 4 deletions precog/utils/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
1 change: 0 additions & 1 deletion precog/utils/general.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import argparse
import asyncio
import re
import time
Expand Down
1 change: 0 additions & 1 deletion precog/validators/validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 13b865c

Please sign in to comment.