Skip to content

Commit 8d20e2b

Browse files
feat: add return type annotations to public functions
1 parent 550b352 commit 8d20e2b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/deploydiff/cli.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
@click.version_option(package_name="deploydiff")
2828
@click.option("--no-gate", is_flag=True, help="Skip license gating check.")
2929
@click.pass_context
30-
def main(ctx, no_gate):
30+
def main(ctx, no_gate) -> None:
3131
"""DeployDiff - Preview infrastructure changes with cost impact and rollback."""
3232
ctx.ensure_object(dict)
3333
ctx.obj["no_gate"] = no_gate
@@ -45,7 +45,7 @@ def main(ctx, no_gate):
4545
is_flag=True,
4646
help="Exit with code 1 if the plan contains destructive changes (deletes or replaces)",
4747
)
48-
def preview(terraform_file, cloudformation_file, pulumi_file, verbose, exit_on_destroy):
48+
def preview(terraform_file, cloudformation_file, pulumi_file, verbose, exit_on_destroy) -> None:
4949
"""Preview infrastructure changes from a plan file."""
5050
plan = _load_plan(terraform_file, cloudformation_file, pulumi_file)
5151
if plan is None:
@@ -73,7 +73,7 @@ def preview(terraform_file, cloudformation_file, pulumi_file, verbose, exit_on_d
7373
default=None,
7474
help="Exit with code 1 if total monthly cost delta exceeds this value (e.g. 500 for $500)",
7575
)
76-
def cost(terraform_file, cloudformation_file, pulumi_file, pricing_file, threshold):
76+
def cost(terraform_file, cloudformation_file, pulumi_file, pricing_file, threshold) -> None:
7777
"""Estimate monthly cost impact of infrastructure changes. (Pro feature)"""
7878
if _HAS_RH_LICENSE:
7979
from revenueholdings_license.license import Tier, require_tier
@@ -99,7 +99,7 @@ def cost(terraform_file, cloudformation_file, pulumi_file, pricing_file, thresho
9999
@click.option("--tf", "terraform_file", type=click.Path(exists=True), help="Terraform plan JSON file")
100100
@click.option("--cfn", "cloudformation_file", type=click.Path(exists=True), help="CloudFormation change set JSON file")
101101
@click.option("--pulumi", "pulumi_file", type=click.Path(exists=True), help="Pulumi preview JSON file")
102-
def rollback(terraform_file, cloudformation_file, pulumi_file):
102+
def rollback(terraform_file, cloudformation_file, pulumi_file) -> None:
103103
"""Generate rollback commands for infrastructure changes. (Pro feature)"""
104104
if _HAS_RH_LICENSE:
105105
from revenueholdings_license.license import Tier, require_tier

0 commit comments

Comments
 (0)