1515from .terraform_parser import parse_terraform_plan
1616
1717try :
18- from revenueholdings_license .integration import rh_check , ci_gate
18+ from revenueholdings_license .integration import rh_check
1919 _HAS_RH_LICENSE = True
2020except ImportError :
2121 _HAS_RH_LICENSE = False
@@ -76,7 +76,7 @@ def preview(terraform_file, cloudformation_file, pulumi_file, verbose, exit_on_d
7676def cost (terraform_file , cloudformation_file , pulumi_file , pricing_file , threshold ):
7777 """Estimate monthly cost impact of infrastructure changes. (Pro feature)"""
7878 if _HAS_RH_LICENSE :
79- from revenueholdings_license .license import require_tier , Tier
79+ from revenueholdings_license .license import Tier , require_tier
8080 require_tier (Tier .PRO , "deploydiff cost" )
8181 plan = _load_plan (terraform_file , cloudformation_file , pulumi_file )
8282 if plan is None :
@@ -102,7 +102,7 @@ def cost(terraform_file, cloudformation_file, pulumi_file, pricing_file, thresho
102102def rollback (terraform_file , cloudformation_file , pulumi_file ):
103103 """Generate rollback commands for infrastructure changes. (Pro feature)"""
104104 if _HAS_RH_LICENSE :
105- from revenueholdings_license .license import require_tier , Tier
105+ from revenueholdings_license .license import Tier , require_tier
106106 require_tier (Tier .PRO , "deploydiff rollback" )
107107 plan = _load_plan (terraform_file , cloudformation_file , pulumi_file )
108108 if plan is None :
@@ -141,8 +141,8 @@ def _load_plan(
141141
142142def _render_costs (estimates : list [CostEstimate ], plan : DeployPlan , console : Console ) -> None :
143143 """Render cost estimates to the console."""
144- from rich .table import Table
145144 from rich import box
145+ from rich .table import Table
146146
147147 table = Table (title = "Cost Impact Estimate" , box = box .ROUNDED , show_header = True )
148148 table .add_column ("Resource" , style = "bold" )
@@ -174,7 +174,7 @@ def _render_costs(estimates: list[CostEstimate], plan: DeployPlan, console: Cons
174174 elif total < 0 :
175175 console .print (f"\n [bold green]Total monthly decrease: -${ abs (total ):.2f} [/bold green]" )
176176 else :
177- console .print (f "\n [bold]Total monthly change: $0.00[/bold]" )
177+ console .print ("\n [bold]Total monthly change: $0.00[/bold]" )
178178
179179
180180@main .command ()
0 commit comments