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 .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ repos:
pydantic_settings,

# types
types-click,
types-PyYAML,
types-requests,
types-toml,
Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ keywords = [
"vllm",
]
dependencies = [
"click",
"click>=8.0.0,<8.2.0",
"datasets",
"ftfy>=6.0.0",
"httpx[http2]<1.0.0",
Expand Down Expand Up @@ -91,7 +91,6 @@ dev = [
"mdformat-gfm~=0.3.6",

# type-checking
"types-click~=7.1.8",
"types-PyYAML~=6.0.1",
"types-requests~=2.32.0",
"types-toml",
Expand Down
9 changes: 3 additions & 6 deletions src/guidellm/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
from guidellm.utils import DefaultGroupHandler
from guidellm.utils import cli as cli_tools

STRATEGY_PROFILE_CHOICES = set(
list(get_args(ProfileType)) + list(get_args(StrategyType))
STRATEGY_PROFILE_CHOICES = list(
set(list(get_args(ProfileType)) + list(get_args(StrategyType)))
)


Expand Down Expand Up @@ -320,10 +320,7 @@ def run(
)


@benchmark.command(
"from-file",
help="Load a saved benchmark report."
)
@benchmark.command("from-file", help="Load a saved benchmark report.")
@click.argument(
"path",
type=click.Path(file_okay=True, dir_okay=False, exists=True),
Expand Down
5 changes: 3 additions & 2 deletions src/guidellm/utils/default_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ def resolve_command(self, ctx, args):
cmd_name, cmd, args = super().resolve_command(ctx, args)
if hasattr(ctx, "arg0"):
args.insert(0, ctx.arg0)
cmd_name = cmd.name
if cmd is not None:
cmd_name = cmd.name
return cmd_name, cmd, args

def format_commands(self, ctx, formatter):
Expand All @@ -79,7 +80,7 @@ def format_commands(self, ctx, formatter):
return super().format_commands(ctx, formatter)


class DefaultCommandFormatter:
class DefaultCommandFormatter(click.HelpFormatter):
"""
Wraps a formatter to edit the line for the default command to mark it
with the specified mark string.
Expand Down