Skip to content

Commit 2f8c542

Browse files
committed
Update ruff pre-commit hook
1 parent a2ad380 commit 2f8c542

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ repos:
99
- id: check-added-large-files
1010

1111
- repo: https://github.com/astral-sh/ruff-pre-commit
12-
rev: v0.14.7
12+
rev: v0.15.4
1313
hooks:
14-
- id: ruff
14+
- id: ruff-check
1515
# fix imports:
1616
# - I001: Bad import order or format
1717
# - F401: Unused import

src/europython_discord/program_notifications/session_to_embed.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def _format_room(rooms: list[str]) -> str:
109109
:return: The name of a room or a placeholder value.
110110
"""
111111
room = ", ".join(rooms)
112-
return room if room else _FIELD_VALUE_EMPTY
112+
return room or _FIELD_VALUE_EMPTY
113113

114114

115115
def _format_track(track: str | None) -> str:

0 commit comments

Comments
 (0)