Skip to content

Commit c6c99d5

Browse files
chore: bump ruff from 0.12.3 to 0.15.6 (#437)
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.12.3 to 0.15.6. - [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.12.3...0.15.6) --- updated-dependencies: - dependency-name: ruff dependency-version: 0.15.6 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent f095030 commit c6c99d5

File tree

5 files changed

+26
-26
lines changed

5 files changed

+26
-26
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ dev = [
5050
"pytest<9.0.0,>=7.1.3",
5151
"mypy>=0.982,<1.20",
5252
"pytest-cov<7,>=4",
53-
"ruff<0.12.4,>=0.5.1",
53+
"ruff>=0.5.1,<0.15.7",
5454
"types-requests<3.0.0.0,>=2.32.4.20250611",
5555
"types-python-dateutil>=2.9.0.20250809",
5656
"freezegun>=1.5.5",

src/twyn/config/config_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ def _write_config(self, toml: TOMLDocument, config: ReadTwynConfiguration) -> No
221221
222222
All null values are simply omitted from the toml file.
223223
"""
224-
twyn_toml_data = asdict(config, dict_factory=lambda x: _serialize_config(x))
224+
twyn_toml_data = asdict(config, dict_factory=_serialize_config)
225225

226226
if "tool" not in toml:
227227
toml.add("tool", table())

src/twyn/dependency_parser/parsers/docker_compose_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def _extract_image_name(self, image_with_tag: str) -> str:
9898
"""
9999
# Strip off the digest FIRST
100100
if "@" in image_with_tag:
101-
image_with_tag = image_with_tag.split("@")[0]
101+
image_with_tag = image_with_tag.split("@", maxsplit=1)[0]
102102

103103
# Find the last ':' in the string
104104
last_colon_idx = image_with_tag.rfind(":")

src/twyn/dependency_parser/parsers/dockerfile_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def _extract_image_name(self, image_with_tag: str) -> str:
123123
"""
124124
# Strip off the digest FIRST
125125
if "@" in image_with_tag:
126-
image_with_tag = image_with_tag.split("@")[0]
126+
image_with_tag = image_with_tag.split("@", maxsplit=1)[0]
127127

128128
# Find the last ':' in the string
129129
last_colon_idx = image_with_tag.rfind(":")

uv.lock

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

0 commit comments

Comments
 (0)