Skip to content

Commit b1e5bcc

Browse files
committed
fix: ruff formatting
1 parent 61f27b3 commit b1e5bcc

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/tagstudio/qt/modals/ffmpeg_checker.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def __init__(self):
4141

4242
red = get_ui_color(ColorType.PRIMARY, UiColor.RED)
4343
green = get_ui_color(ColorType.PRIMARY, UiColor.GREEN)
44-
missing = f"<span style='color:{red}'>{Translations["generic.missing"]}</span>"
44+
missing = f"<span style='color:{red}'>{Translations['generic.missing']}</span>"
4545
found = f"<span style='color:{green}'>{Translations['about.module.found']}</span>"
4646
status = Translations.format(
4747
"ffmpeg.missing.status",
@@ -50,4 +50,4 @@ def __init__(self):
5050
ffprobe=ffprobe,
5151
ffprobe_status=found if which(FFPROBE_CMD) else missing,
5252
)
53-
self.setText(f"{Translations["ffmpeg.missing.description"]}<br><br>{status}")
53+
self.setText(f"{Translations['ffmpeg.missing.description']}<br><br>{status}")

src/tagstudio/qt/widgets/preview/file_attributes.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -166,11 +166,11 @@ def update_stats(self, filepath: Path | None = None, ext: str = ".", stats: dict
166166
for i, part in enumerate(display_path.parts):
167167
part_ = part.strip(os.path.sep)
168168
if i != len(display_path.parts) - 1:
169-
file_str += f"{"\u200b".join(part_)}{separator}</b>"
169+
file_str += f"{'\u200b'.join(part_)}{separator}</b>"
170170
else:
171171
if file_str != "":
172172
file_str += "<br>"
173-
file_str += f"<b>{"\u200b".join(part_)}</b>"
173+
file_str += f"<b>{'\u200b'.join(part_)}</b>"
174174
self.file_label.setText(file_str)
175175
self.file_label.setCursor(Qt.CursorShape.PointingHandCursor)
176176
self.opener = FileOpenerHelper(filepath)

tests/qt/test_file_path_options.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,11 @@ def test_file_path_display(qt_driver, library, filepath_option, expected_path):
7070
for i, part in enumerate(display_path.parts):
7171
part_ = part.strip(os.path.sep)
7272
if i != len(display_path.parts) - 1:
73-
file_str += f"{"\u200b".join(part_)}{separator}</b>"
73+
file_str += f"{'\u200b'.join(part_)}{separator}</b>"
7474
else:
7575
if file_str != "":
7676
file_str += "<br>"
77-
file_str += f"<b>{"\u200b".join(part_)}</b>"
77+
file_str += f"<b>{'\u200b'.join(part_)}</b>"
7878

7979
# Assert the file path is displayed correctly
8080
assert panel.file_attrs.file_label.text() == file_str

0 commit comments

Comments
 (0)