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
1 change: 0 additions & 1 deletion .github/workflows/e2e-subtensor-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ jobs:
uv venv .venv
source .venv/bin/activate
uv pip install .[dev]
uv pip install pytest

- name: Download Cached Docker Image
uses: actions/download-artifact@v4
Expand Down
8 changes: 1 addition & 7 deletions bittensor_cli/src/commands/wallets.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from bittensor_wallet import Wallet, Keypair
from bittensor_wallet.errors import KeyFileError
from bittensor_wallet.keyfile import Keyfile
from fuzzywuzzy import fuzz
from rich import box
from rich.align import Align
from rich.table import Column, Table
Expand Down Expand Up @@ -1227,16 +1226,11 @@ async def overview(

if sort_by:
column_to_sort_by: int = 0
highest_matching_ratio: int = 0
sort_descending: bool = False # Default sort_order to ascending

for index, column in zip(range(len(table.columns)), table.columns):
# Fuzzy match the column name. Default to the first column.
column_name = column.header.lower().replace("[white]", "")
match_ratio = fuzz.ratio(sort_by.lower(), column_name)
# Finds the best matching column
if match_ratio > highest_matching_ratio:
highest_matching_ratio = match_ratio
if column_name == sort_by.lower().strip():
column_to_sort_by = index

if sort_order.lower() in {"desc", "descending", "reverse"}:
Expand Down
7 changes: 4 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,11 @@ dependencies = [
"backoff~=2.2.1",
"click<8.2.0", # typer.testing.CliRunner(mix_stderr=) is broken in click 8.2.0+
"GitPython>=3.0.0",
"fuzzywuzzy~=0.18.0",
"netaddr~=1.3.0",
"numpy>=2.0.1,<3.0.0",
"Jinja2",
"pycryptodome>=3.0.0,<4.0.0",
"PyYAML~=6.0.1",
"pytest",
"python-Levenshtein",
"rich>=13.7,<15.0",
"scalecodec==1.2.11",
"typer>=0.12,<0.16",
Expand All @@ -40,6 +37,10 @@ dependencies = [
cuda = [
"torch>=1.13.1,<3.0",
]
dev = [
"pytest",
"pytest-asyncio",
]

[project.urls]
# more details can be found here
Expand Down
Loading