Skip to content

Commit e1deea4

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 54d7b17 commit e1deea4

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

billing/calculate_billing.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,7 @@ def calculate_costs(billing_info):
7676
def summary_stats(yml, contingency, months):
7777
# Print cost breakdown
7878
if months != 1:
79-
print(
80-
f"""
79+
print(f"""
8180
Cluster cost per month: ${yml["costs"]["cluster_cost_permonth_usd"]:.2f}
8281
ACR cost per month: ${yml["costs"]["acr_cost_peravgmonth_usd"]:.2f}
8382
@@ -91,12 +90,10 @@ def summary_stats(yml, contingency, months):
9190
9291
Total cost for {months} months with {contingency}% contingency:
9392
${(1.0 + contingency) * months * (yml["costs"]["cluster_cost_permonth_usd"] + yml["costs"]["acr_cost_peravgmonth_usd"]):.2f}
94-
"""
95-
)
93+
""")
9694

9795
else:
98-
print(
99-
f"""
96+
print(f"""
10097
Cluster cost per month: ${yml["costs"]["cluster_cost_permonth_usd"]:.2f}
10198
ACR cost per month: ${yml["costs"]["acr_cost_peravgmonth_usd"]:.2f}
10299
@@ -106,8 +103,7 @@ def summary_stats(yml, contingency, months):
106103
107104
Total cost with {contingency}% contingency:
108105
${(1.0 + contingency) * (yml["costs"]["cluster_cost_permonth_usd"] + yml["costs"]["acr_cost_peravgmonth_usd"]):.2f}
109-
"""
110-
)
106+
""")
111107

112108

113109
if __name__ == "__main__":

0 commit comments

Comments
 (0)