Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions gittensor/cli/issue_commands/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
from gittensor.cli.issue_commands.tables import build_pr_table
from gittensor.constants import CONTRACT_ADDRESS, NETWORK_MAP

# Default CLI config paths
GITTENSOR_DIR = Path.home() / '.gittensor'
CONFIG_FILE = GITTENSOR_DIR / 'config.json'

# ALPHA token conversion
ALPHA_DECIMALS = 9
ALPHA_RAW_UNIT = 10**ALPHA_DECIMALS
Expand All @@ -44,10 +48,6 @@
}


# Default paths
GITTENSOR_DIR = Path.home() / '.gittensor'
CONFIG_FILE = GITTENSOR_DIR / 'config.json'

console = Console()

CommandFunc = TypeVar('CommandFunc', bound=Callable[..., Any])
Expand Down
6 changes: 1 addition & 5 deletions gittensor/cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

import json
import os
from pathlib import Path

import click
from click.shell_completion import get_completion_class
Expand All @@ -23,13 +22,10 @@

from gittensor.cli.issue_commands import register_commands
from gittensor.cli.issue_commands.help import StyledAliasGroup, StyledGroup
from gittensor.cli.issue_commands.helpers import CONFIG_FILE, GITTENSOR_DIR

console = Console()

# Config paths
GITTENSOR_DIR = Path.home() / '.gittensor'
CONFIG_FILE = GITTENSOR_DIR / 'config.json'


@click.group(cls=StyledAliasGroup)
@click.version_option(version='3.2.0', prog_name='gittensor')
Expand Down
Loading