Skip to content

Commit 88851c8

Browse files
chore(deps-dev): bump ruff from 0.11.8 to 0.12.1 (#6879)
* chore(deps-dev): bump ruff from 0.11.8 to 0.12.1 Bumps [ruff](https://github.com/astral-sh/ruff) from 0.11.8 to 0.12.1. - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](astral-sh/ruff@0.11.8...0.12.1) --- updated-dependencies: - dependency-name: ruff dependency-version: 0.12.1 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Add support for new Ruff checks --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Leandro Damascena <[email protected]>
1 parent b0a8126 commit 88851c8

File tree

4 files changed

+32
-22
lines changed

4 files changed

+32
-22
lines changed

aws_lambda_powertools/utilities/data_classes/common.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,12 @@ def __getitem__(self, k):
7171
def __setitem__(self, k, v):
7272
super().__setitem__(k.lower(), v)
7373

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

7581
class DictWrapper(Mapping):
7682
"""Provides a single read only access to a wrapper dict"""
@@ -154,6 +160,9 @@ def raw_event(self) -> dict[str, Any]:
154160
"""The original raw event dict"""
155161
return self._data
156162

163+
def __hash__(self):
164+
return hash(self._data)
165+
157166

158167
class BaseProxyEvent(DictWrapper):
159168
@property

poetry.lock

Lines changed: 20 additions & 20 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
@@ -117,7 +117,7 @@ types-python-dateutil = "^2.8.19.6"
117117
aws-cdk-aws-appsync-alpha = "^2.59.0a0"
118118
httpx = ">=0.23.3,<0.29.0"
119119
sentry-sdk = ">=1.22.2,<3.0.0"
120-
ruff = ">=0.5.1,<0.11.14"
120+
ruff = ">=0.5.1,<0.12.2"
121121
retry2 = "^0.9.5"
122122
pytest-socket = ">=0.6,<0.8"
123123
types-redis = "^4.6.0.7"

ruff.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ lint.ignore = [
3939
"PLC1901", # Compare-to-empty-string - disabled temporarily
4040
"PYI024",
4141
"A005",
42-
"TC006" # https://docs.astral.sh/ruff/rules/runtime-cast-value/
42+
"TC006", # https://docs.astral.sh/ruff/rules/runtime-cast-value/
43+
"PLC0415", # https://docs.astral.sh/ruff/rules/import-outside-top-level/
4344
]
4445

4546
# Exclude files and directories

0 commit comments

Comments
 (0)