Skip to content

Commit 5ebc0cd

Browse files
committed
fix: Apply code formatting to resolve CI quality check failures
- Format appsync.py file according to project standards using Ruff - Fix 13 additional linting issues automatically - Ensure all 1167 files pass formatting checks - Resolves GitHub Actions workflow failure in PR aws-powertools#7330
1 parent 84aeb20 commit 5ebc0cd

File tree

1 file changed

+10
-14
lines changed
  • aws_lambda_powertools/utilities/parser/models

1 file changed

+10
-14
lines changed

aws_lambda_powertools/utilities/parser/models/appsync.py

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ class AppSyncIamIdentity(BaseModel):
1919
description=(
2020
"The source IP address of the caller that AWS AppSync receives. "
2121
"If the request includes a x-forwarded-for header, this is a list of IP addresses."
22-
)
22+
),
2323
)
2424
username: str = Field(
25-
description="The IAM user principal name.", examples=["AIDAAAAAAAAAAAAAAAAAA", "appsync-user"]
25+
description="The IAM user principal name.", examples=["AIDAAAAAAAAAAAAAAAAAA", "appsync-user"],
2626
)
2727
userArn: str = Field(
2828
description="The Amazon Resource Name (ARN) of the IAM user.",
@@ -63,17 +63,15 @@ class AppSyncCognitoIdentity(BaseModel):
6363
description="The username of the authenticated user (cognito:username attribute).",
6464
examples=["mike", "jdoe", "user123"],
6565
)
66-
claims: Dict[str, Any] = Field(
67-
description="The JWT claims that the user has from Cognito User Pool."
68-
)
66+
claims: Dict[str, Any] = Field(description="The JWT claims that the user has from Cognito User Pool.")
6967
sourceIp: List[str] = Field(
7068
description=(
7169
"The source IP address of the caller that AWS AppSync receives. "
7270
"If the request includes a x-forwarded-for header, this is a list of IP addresses."
73-
)
71+
),
7472
)
7573
defaultAuthStrategy: str = Field(
76-
description="The default authorization strategy for this caller (ALLOW or DENY).", examples=["ALLOW", "DENY"]
74+
description="The default authorization strategy for this caller (ALLOW or DENY).", examples=["ALLOW", "DENY"],
7775
)
7876
groups: Optional[List[str]] = Field(
7977
default=None,
@@ -83,9 +81,7 @@ class AppSyncCognitoIdentity(BaseModel):
8381

8482

8583
class AppSyncOidcIdentity(BaseModel):
86-
claims: Dict[str, Any] = Field(
87-
description="The JWT claims from the OpenID Connect provider."
88-
)
84+
claims: Dict[str, Any] = Field(description="The JWT claims from the OpenID Connect provider.")
8985
issuer: str = Field(
9086
description="The token issuer URL from the OpenID Connect provider.",
9187
examples=["https://accounts.google.com", "https://login.microsoftonline.com/tenant-id/v2.0"],
@@ -134,7 +130,7 @@ class AppSyncRequestModel(BaseModel):
134130
"host": "example.appsync-api.us-east-1.amazonaws.com",
135131
"user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7)",
136132
"content-type": "application/json",
137-
}
133+
},
138134
],
139135
)
140136

@@ -196,7 +192,7 @@ class AppSyncResolverEventModel(BaseModel):
196192
],
197193
)
198194
identity: Optional[AppSyncIdentity] = Field(
199-
default=None, description="Information about the caller identity (authenticated user or API key)."
195+
default=None, description="Information about the caller identity (authenticated user or API key).",
200196
)
201197
source: Optional[Dict[str, Any]] = Field(
202198
default=None,
@@ -210,10 +206,10 @@ class AppSyncResolverEventModel(BaseModel):
210206
)
211207
request: AppSyncRequestModel = Field(description="Information about the GraphQL request context.")
212208
info: AppSyncInfoModel = Field(
213-
description="Information about the GraphQL request including selection set and field details."
209+
description="Information about the GraphQL request including selection set and field details.",
214210
)
215211
prev: Optional[AppSyncPrevModel] = Field(
216-
default=None, description="Results from the previous resolver in a pipeline resolver."
212+
default=None, description="Results from the previous resolver in a pipeline resolver.",
217213
)
218214
stash: Dict[str, Any] = Field(
219215
description=(

0 commit comments

Comments
 (0)