Skip to content

Commit 697f892

Browse files
dependabot[bot]Tim020claude
authored
Bump ruff from 0.14.14 to 0.15.0 in /server (#899)
* Bump ruff from 0.14.14 to 0.15.0 in /server Bumps [ruff](https://github.com/astral-sh/ruff) from 0.14.14 to 0.15.0. - [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.14.14...0.15.0) --- updated-dependencies: - dependency-name: ruff dependency-version: 0.15.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Fix ruff 0.15.0 lint and formatting violations Address newly stabilized rules and 2026 formatter style: - PLW0108: Add noqa for Marshmallow forward-reference lambda in schemas.py - PLC0207: Add maxsplit=1 to str.split() in version_checker.py - Parenthesize multi-line ternary in lambda for 2026 format style Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Tim Bradgate <timbradgate@hotmail.co.uk> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent c8cefdf commit 697f892

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

server/controllers/api/show/microphones.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -498,9 +498,11 @@ async def post(self):
498498
]
499499
# Sort by scene position (chronological order)
500500
character_scenes.sort(
501-
key=lambda x: scene_metadata[x[0]].position
502-
if x[0] in scene_metadata
503-
else 0
501+
key=lambda x: (
502+
scene_metadata[x[0]].position
503+
if x[0] in scene_metadata
504+
else 0
505+
)
504506
)
505507

506508
# Assign mic for each scene

server/schemas/schemas.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ class Meta:
227227
include_fk = True
228228

229229
line_parts = Nested(
230-
lambda: ScriptLinePartSchema(),
230+
lambda: ScriptLinePartSchema(), # noqa: PLW0108 — forward reference required
231231
many=True,
232232
)
233233

server/test_requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
pytest<9.1
22
pytest-asyncio>=1.3.0
3-
ruff==0.14.14
3+
ruff==0.15.0

server/utils/version_checker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,8 @@ def _is_newer_version(self, latest: str, current: str) -> bool:
198198
"""
199199
try:
200200
# Strip pre-release suffixes (everything after -)
201-
latest_clean = latest.split("-")[0]
202-
current_clean = current.split("-")[0]
201+
latest_clean = latest.split("-", maxsplit=1)[0]
202+
current_clean = current.split("-", maxsplit=1)[0]
203203

204204
latest_parts = [int(x) for x in latest_clean.split(".")]
205205
current_parts = [int(x) for x in current_clean.split(".")]

0 commit comments

Comments
 (0)