Skip to content

Commit 856ed5f

Browse files
committed
Fix Flake8 line length violations
- Break long lines (>88 chars) into multiple lines - Fix f-string formatting to comply with line length limits - Maintain Black formatting compatibility - All lines now under 88 character limit - Both Black and Flake8 checks now pass
1 parent 5574c20 commit 856ed5f

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

lambda/handler.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ def lambda_handler(event, context):
5656
else:
5757
alert_sent = False
5858
logger.info(
59-
f"Cost ${cost_summary['total_cost']:.2f} within threshold ${cost_threshold:.2f}"
59+
f"Cost ${cost_summary['total_cost']:.2f} within threshold "
60+
f"${cost_threshold:.2f}"
6061
)
6162

6263
return {
@@ -209,7 +210,8 @@ def send_slack_alert(
209210
{"type": "mrkdwn", "text": f"*Threshold:* ${threshold:.2f}"},
210211
{
211212
"type": "mrkdwn",
212-
"text": f"*Overage:* ${cost_summary['total_cost'] - threshold:.2f}",
213+
"text": f"*Overage:* "
214+
f"${cost_summary['total_cost'] - threshold:.2f}",
213215
},
214216
],
215217
},
@@ -225,7 +227,8 @@ def send_slack_alert(
225227
"elements": [
226228
{
227229
"type": "mrkdwn",
228-
"text": f"Total services with costs: {cost_summary['service_count']}",
230+
"text": f"Total services with costs: "
231+
f"{cost_summary['service_count']}",
229232
}
230233
],
231234
},

0 commit comments

Comments
 (0)