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
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ classifiers = [
]
version = "0"
dependencies = [
"typer>=0.13",
"rich>=10.11",
"typer>=0.26",
"rich>=13.8",
"semver>=3",
"pydantic-settings>=2",
"modern-di-typer>=3,<4",
"modern-di-typer>=4,<5",
"httpx2>=2",
"httpware[pydantic]>=0.18.0",
]
Expand Down
3 changes: 2 additions & 1 deletion semvertag/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ def _main_callback( # noqa: PLR0913, PLR0917

@modern_di_typer.inject
def _resolve_use_case(
_ctx: typer.Context,
use_case: typing.Annotated[SemvertagUseCase, modern_di_typer.FromDI(SemvertagUseCase)],
) -> SemvertagUseCase:
return use_case
Expand All @@ -158,7 +159,7 @@ def _tag_command(
) -> None:
output: Output = build_json_output(quiet=quiet) if json_flag else build_rich_output(quiet=quiet)
try:
use_case = _resolve_use_case(ctx=ctx)
use_case = _resolve_use_case(ctx)
use_case(output=output, dry_run=dry_run)
except ImportError as exc:
err = ConfigError(f"Required module unavailable: {exc}.")
Expand Down
Loading