Skip to content

chore(deps-dev): bump ruff from 0.11.8 to 0.12.1 #6879

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 30, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions aws_lambda_powertools/utilities/data_classes/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@
def __setitem__(self, k, v):
super().__setitem__(k.lower(), v)

def __hash__(self):
# Convert the dictionary to a frozenset of tuples (key, value)
# where all keys are lowercase
items = frozenset((k.lower(), v) for k, v in self.items())
return hash(items)

Check warning on line 78 in aws_lambda_powertools/utilities/data_classes/common.py

View check run for this annotation

Codecov / codecov/patch

aws_lambda_powertools/utilities/data_classes/common.py#L77-L78

Added lines #L77 - L78 were not covered by tests


class DictWrapper(Mapping):
"""Provides a single read only access to a wrapper dict"""
Expand Down Expand Up @@ -154,6 +160,9 @@
"""The original raw event dict"""
return self._data

def __hash__(self):
return hash(self._data)

Check warning on line 164 in aws_lambda_powertools/utilities/data_classes/common.py

View check run for this annotation

Codecov / codecov/patch

aws_lambda_powertools/utilities/data_classes/common.py#L164

Added line #L164 was not covered by tests


class BaseProxyEvent(DictWrapper):
@property
Expand Down
40 changes: 20 additions & 20 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ types-python-dateutil = "^2.8.19.6"
aws-cdk-aws-appsync-alpha = "^2.59.0a0"
httpx = ">=0.23.3,<0.29.0"
sentry-sdk = ">=1.22.2,<3.0.0"
ruff = ">=0.5.1,<0.11.14"
ruff = ">=0.5.1,<0.12.2"
retry2 = "^0.9.5"
pytest-socket = ">=0.6,<0.8"
types-redis = "^4.6.0.7"
Expand Down
3 changes: 2 additions & 1 deletion ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ lint.ignore = [
"PLC1901", # Compare-to-empty-string - disabled temporarily
"PYI024",
"A005",
"TC006" # https://docs.astral.sh/ruff/rules/runtime-cast-value/
"TC006", # https://docs.astral.sh/ruff/rules/runtime-cast-value/
"PLC0415", # https://docs.astral.sh/ruff/rules/import-outside-top-level/
]

# Exclude files and directories
Expand Down
Loading