Skip to content

Commit 1591ce8

Browse files
remyduthuclaude
andauthored
chore: remove click-default-group dependency (#949)
Drop unused default command config; removes misleading `stack*` from help. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 8b21c89 commit 1591ce8

File tree

4 files changed

+2
-34
lines changed

4 files changed

+2
-34
lines changed

mergify_cli/cli.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,13 @@
2020
import sys
2121

2222
import click
23-
import click_default_group
2423

2524
from mergify_cli import VERSION
2625
from mergify_cli.ci import cli as ci_cli_mod
2726
from mergify_cli.stack import cli as stack_cli_mod
2827

2928

3029
@click.group(
31-
cls=click_default_group.DefaultGroup,
32-
default="stack",
33-
default_if_no_args=False,
3430
invoke_without_command=True,
3531
)
3632
@click.option("--debug", is_flag=True, default=False, help="debug mode")

mergify_cli/tests/test_cli.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,5 @@ def test_cli_shows_help_by_default() -> None:
1414
assert "Usage:" in result.output
1515
assert "Options:" in result.output
1616
assert "--help" in result.output
17+
assert "stack*" not in result.output
18+
assert "stack" in result.output

pyproject.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ dependencies = [
1111
"rich==14.3.2",
1212
"aiofiles==25.1.0",
1313
"click==8.3.1",
14-
"click-default-group==1.2.4",
1514
"opentelemetry-exporter-otlp-proto-http==1.39.1",
1615
"opentelemetry-sdk==1.39.1",
1716
"tenacity==9.1.2",
@@ -33,7 +32,6 @@ dev = [
3332
"respx==0.22.0",
3433
"types-aiofiles==25.1.0.20251011",
3534
"types-click==7.1.8",
36-
"types-click-default-group==1.2.0.20250513",
3735
"types-pyyaml==6.0.12.20250915",
3836
"anys==0.3.1",
3937
"responses==0.25.8",

uv.lock

Lines changed: 0 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)