Skip to content

Commit ba2a7d7

Browse files
authored
Merge branch 'main' into fix-logging-docs
2 parents 8a6ea73 + e163dd5 commit ba2a7d7

File tree

4 files changed

+7
-11
lines changed

4 files changed

+7
-11
lines changed

.pre-commit-config.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ repos:
4242
pydantic_settings,
4343

4444
# types
45-
types-click,
4645
types-PyYAML,
4746
types-requests,
4847
types-toml,

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ keywords = [
4343
"vllm",
4444
]
4545
dependencies = [
46-
"click",
46+
"click>=8.0.0,<8.2.0",
4747
"datasets",
4848
"ftfy>=6.0.0",
4949
"httpx[http2]<1.0.0",
@@ -91,7 +91,6 @@ dev = [
9191
"mdformat-gfm~=0.3.6",
9292

9393
# type-checking
94-
"types-click~=7.1.8",
9594
"types-PyYAML~=6.0.1",
9695
"types-requests~=2.32.0",
9796
"types-toml",

src/guidellm/__main__.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
from guidellm.utils import DefaultGroupHandler
2020
from guidellm.utils import cli as cli_tools
2121

22-
STRATEGY_PROFILE_CHOICES = set(
23-
list(get_args(ProfileType)) + list(get_args(StrategyType))
22+
STRATEGY_PROFILE_CHOICES = list(
23+
set(list(get_args(ProfileType)) + list(get_args(StrategyType)))
2424
)
2525

2626

@@ -320,10 +320,7 @@ def run(
320320
)
321321

322322

323-
@benchmark.command(
324-
"from-file",
325-
help="Load a saved benchmark report."
326-
)
323+
@benchmark.command("from-file", help="Load a saved benchmark report.")
327324
@click.argument(
328325
"path",
329326
type=click.Path(file_okay=True, dir_okay=False, exists=True),

src/guidellm/utils/default_group.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ def resolve_command(self, ctx, args):
6868
cmd_name, cmd, args = super().resolve_command(ctx, args)
6969
if hasattr(ctx, "arg0"):
7070
args.insert(0, ctx.arg0)
71-
cmd_name = cmd.name
71+
if cmd is not None:
72+
cmd_name = cmd.name
7273
return cmd_name, cmd, args
7374

7475
def format_commands(self, ctx, formatter):
@@ -79,7 +80,7 @@ def format_commands(self, ctx, formatter):
7980
return super().format_commands(ctx, formatter)
8081

8182

82-
class DefaultCommandFormatter:
83+
class DefaultCommandFormatter(click.HelpFormatter):
8384
"""
8485
Wraps a formatter to edit the line for the default command to mark it
8586
with the specified mark string.

0 commit comments

Comments
 (0)