Skip to content

Commit 1075631

Browse files
authored
Merge branch 'develop' into feat/idempotency-output-serializer
2 parents bf25130 + 2a8be25 commit 1075631

File tree

5 files changed

+24
-24
lines changed

5 files changed

+24
-24
lines changed

aws_lambda_powertools/event_handler/api_gateway.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
_DYNAMIC_ROUTE_PATTERN = r"(<\w+>)"
4444
_SAFE_URI = "-._~()'!*:@,;=" # https://www.ietf.org/rfc/rfc3986.txt
4545
# API GW/ALB decode non-safe URI chars; we must support them too
46-
_UNSAFE_URI = "%<> \[\]{}|^" # noqa: W605
46+
_UNSAFE_URI = r"%<> \[\]{}|^"
4747
_NAMED_GROUP_BOUNDARY_PATTERN = rf"(?P\1[{_SAFE_URI}{_UNSAFE_URI}\\w]+)"
4848
_ROUTE_REGEX = "^{}$"
4949

poetry.lock

Lines changed: 19 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ mypy = "^1.1.1"
9393
types-python-dateutil = "^2.8.19.6"
9494
httpx = ">=0.23.3,<0.25.0"
9595
sentry-sdk = "^1.22.2"
96-
ruff = ">=0.0.272,<0.0.285"
96+
ruff = ">=0.0.272,<0.0.286"
9797
retry2 = "^0.9.5"
9898

9999
[tool.coverage.run]

tests/e2e/utils/lambda_layer/powertools_layer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@ def build(self) -> str:
3636
self.before_build()
3737

3838
if self._has_source_changed():
39-
subprocess.run(self.build_command, shell=True)
39+
subprocess.run(self.build_command, shell=True, check=True)
4040

4141
self.after_build()
4242

4343
return str(self.output_dir)
4444

4545
def after_build(self):
46-
subprocess.run(self.cleanup_command, shell=True)
46+
subprocess.run(self.cleanup_command, shell=True, check=True)
4747

4848
def _has_source_changed(self) -> bool:
4949
"""Hashes source code and

tests/unit/data_classes/test_api_gateway_authorizer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def test_authorizer_response_invalid_verb(builder: APIGatewayAuthorizerResponse)
3131

3232

3333
def test_authorizer_response_invalid_resource(builder: APIGatewayAuthorizerResponse):
34-
with pytest.raises(ValueError, match="Invalid resource path: \$."): # noqa: W605
34+
with pytest.raises(ValueError, match=r"Invalid resource path: \$."):
3535
# GIVEN an invalid resource path "$"
3636
# WHEN calling deny_method
3737
builder.deny_route(http_method=HttpVerb.GET.value, resource="$")

0 commit comments

Comments
 (0)