Skip to content

Commit 2b58f85

Browse files
committed
fix flake8 errors
1 parent a578174 commit 2b58f85

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

aws_sra_examples/solutions/ami_bakery/ami_bakery_org/lambda/src/codepipeline.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def create_codepipeline(
9090
"roleArn": "arn:" + aws_partition + ":iam::" + account_id + ":role/" + codepipeline_role_name,
9191
"artifactStore": {"type": "S3", "location": bucket_name},
9292
"stages": [
93-
{ # type: ignore
93+
{ # type: ignore
9494
"name": pipeline_name + "-CodeCommitSource",
9595
"actions": [
9696
{
@@ -104,7 +104,7 @@ def create_codepipeline(
104104
}
105105
],
106106
},
107-
{ # type: ignore
107+
{ # type: ignore
108108
"name": pipeline_name + "-DeployEC2ImageBuilder",
109109
"actions": [
110110
{

aws_sra_examples/solutions/config/config_org/lambda/src/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def set_config_in_org(
9292
configuration_recorder: ConfigurationRecorderTypeDef = {
9393
"name": recorder_name,
9494
"roleARN": role_arn,
95-
"recordingGroup": { # type: ignore
95+
"recordingGroup": { # type: ignore
9696
"allSupported": all_supported,
9797
"includeGlobalResourceTypes": include_global_resource_types,
9898
"resourceTypes": resource_types,

aws_sra_examples/solutions/genai/bedrock_org/lambda/src/sra_config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,10 @@ def find_config_rule(self, rule_name: str) -> tuple[bool, dict | DescribeConfigR
115115
self.LOGGER.info(f"Config rule {rule_name} exists: {response}")
116116
return True, response
117117

118-
def create_config_rule(
118+
def create_config_rule( # noqa: CFQ002
119119
self,
120120
rule_name: str,
121-
lambda_arn: str, # noqa: CFQ002
121+
lambda_arn: str,
122122
max_frequency: Literal["One_Hour", "Three_Hours", "Six_Hours", "Twelve_Hours", "TwentyFour_Hours"],
123123
owner: Literal["CUSTOM_LAMBDA", "AWS"],
124124
description: str,

aws_sra_examples/solutions/genai/bedrock_org/lambda/src/sra_dynamodb.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ class SRADynamoDB:
3535
log_level: str = os.environ.get("LOG_LEVEL", "INFO")
3636
LOGGER.setLevel(log_level)
3737

38-
3938
try:
4039
MANAGEMENT_ACCOUNT_SESSION: Session = boto3.Session()
4140
except Exception as error:

aws_sra_examples/solutions/genai/bedrock_org/lambda/src/sra_repo.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
import urllib3
1919

20+
2021
class SRARepo:
2122
"""SRA Repo Class."""
2223

0 commit comments

Comments
 (0)