Skip to content

Commit 7d41c93

Browse files
chore: fix ruff lint errors after dependency updates
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 8d76b2a commit 7d41c93

5 files changed

Lines changed: 9 additions & 10 deletions

File tree

benchmark/src/instrumented/main.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
from aws_lambda_powertools import (Logger, Metrics, Tracer)
2-
1+
from aws_lambda_powertools import Logger, Metrics, Tracer
32

43
# Initialize core utilities
54
logger = Logger()
@@ -13,5 +12,5 @@
1312
@tracer.capture_lambda_handler
1413
def handler(event, context):
1514
return {
16-
"message": "success"
17-
}
15+
"message": "success",
16+
}

benchmark/src/reference/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
def handler(event, context):
22
return {
3-
"message": "success"
4-
}
3+
"message": "success",
4+
}

layer_v3/app.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/usr/bin/env python3
22

33
import aws_cdk as cdk
4-
54
from layer.canary_stack import CanaryStack
65
from layer.layer_stack import LayerStack
76

layer_v3/layer/canary/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def on_event(event, context):
6666

6767
def on_create(event):
6868
props = event["ResourceProperties"]
69-
logger.info("create new resource with properties %s" % props)
69+
logger.info(f"create new resource with properties {props}")
7070
handler(event)
7171

7272

parallel_run_e2e.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
""" Calculate how many parallel workers are needed to complete E2E infrastructure jobs across available CPU Cores """
1+
"""Calculate how many parallel workers are needed to complete E2E infrastructure jobs across available CPU Cores"""
2+
23
import subprocess
34
import sys
45
from pathlib import Path
@@ -9,7 +10,7 @@ def main():
910
workers = len(list(features)) - 1
1011

1112
command = f"poetry run pytest -n {workers} -o log_cli=true tests/e2e"
12-
result = subprocess.run(command.split(), shell=False)
13+
result = subprocess.run(command.split(), shell=False, check=False)
1314
sys.exit(result.returncode)
1415

1516

0 commit comments

Comments
 (0)