File tree Expand file tree Collapse file tree 3 files changed +5
-11
lines changed
bittensor_cli/src/commands Expand file tree Collapse file tree 3 files changed +5
-11
lines changed Original file line number Diff line number Diff line change 88
88
uv venv .venv
89
89
source .venv/bin/activate
90
90
uv pip install .[dev]
91
- uv pip install pytest
92
91
93
92
- name : Download Cached Docker Image
94
93
uses : actions/download-artifact@v4
Original file line number Diff line number Diff line change 9
9
from bittensor_wallet import Wallet , Keypair
10
10
from bittensor_wallet .errors import KeyFileError
11
11
from bittensor_wallet .keyfile import Keyfile
12
- from fuzzywuzzy import fuzz
13
12
from rich import box
14
13
from rich .align import Align
15
14
from rich .table import Column , Table
@@ -1227,16 +1226,11 @@ async def overview(
1227
1226
1228
1227
if sort_by :
1229
1228
column_to_sort_by : int = 0
1230
- highest_matching_ratio : int = 0
1231
1229
sort_descending : bool = False # Default sort_order to ascending
1232
1230
1233
1231
for index , column in zip (range (len (table .columns )), table .columns ):
1234
- # Fuzzy match the column name. Default to the first column.
1235
1232
column_name = column .header .lower ().replace ("[white]" , "" )
1236
- match_ratio = fuzz .ratio (sort_by .lower (), column_name )
1237
- # Finds the best matching column
1238
- if match_ratio > highest_matching_ratio :
1239
- highest_matching_ratio = match_ratio
1233
+ if column_name == sort_by .lower ().strip ():
1240
1234
column_to_sort_by = index
1241
1235
1242
1236
if sort_order .lower () in {"desc" , "descending" , "reverse" }:
Original file line number Diff line number Diff line change @@ -20,14 +20,11 @@ dependencies = [
20
20
" backoff~=2.2.1" ,
21
21
" click<8.2.0" , # typer.testing.CliRunner(mix_stderr=) is broken in click 8.2.0+
22
22
" GitPython>=3.0.0" ,
23
- " fuzzywuzzy~=0.18.0" ,
24
23
" netaddr~=1.3.0" ,
25
24
" numpy>=2.0.1,<3.0.0" ,
26
25
" Jinja2" ,
27
26
" pycryptodome>=3.0.0,<4.0.0" ,
28
27
" PyYAML~=6.0.1" ,
29
- " pytest" ,
30
- " python-Levenshtein" ,
31
28
" rich>=13.7,<15.0" ,
32
29
" scalecodec==1.2.11" ,
33
30
" typer>=0.12,<0.16" ,
@@ -40,6 +37,10 @@ dependencies = [
40
37
cuda = [
41
38
" torch>=1.13.1,<3.0" ,
42
39
]
40
+ dev = [
41
+ " pytest" ,
42
+ " pytest-asyncio" ,
43
+ ]
43
44
44
45
[project .urls ]
45
46
# more details can be found here
You can’t perform that action at this time.
0 commit comments