Skip to content

Commit fa67e9f

Browse files
committed
fix: apply all black formatting fixes to main_window.py
- Move setStyleSheet opening parenthesis to same line as triple quotes - Move setStyleSheet closing parenthesis to same line as triple quotes - Consolidate status_label.setText calls to single lines where possible - Consolidate get_translation calls to single lines where possible - Fixes all black formatting check failures
1 parent 048d340 commit fa67e9f

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

bookmark_checker/ui/main_window.py

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,7 @@ def _on_language_changed(self, index: int) -> None:
206206

207207
def _setup_style(self) -> None:
208208
"""Set up dark Fusion style."""
209-
self.setStyleSheet(
210-
"""
209+
self.setStyleSheet("""
211210
QMainWindow {
212211
background-color: #2b2b2b;
213212
color: #ffffff;
@@ -257,8 +256,7 @@ def _setup_style(self) -> None:
257256
QProgressBar::chunk {
258257
background-color: #4caf50;
259258
}
260-
"""
261-
)
259+
""")
262260

263261
def dragEnterEvent(self, event: QDragEnterEvent | None) -> None:
264262
"""Handle drag enter event."""
@@ -453,9 +451,7 @@ def _export_merged(self) -> None:
453451
"exported_to",
454452
"Exported to {path1} and {path2}",
455453
)
456-
self.status_label.setText(
457-
exported_to_msg.format(path1=output_path, path2=csv_path)
458-
)
454+
self.status_label.setText(exported_to_msg.format(path1=output_path, path2=csv_path))
459455
exported_msg = get_translation(
460456
self.current_language,
461457
"exported_successfully",
@@ -473,9 +469,7 @@ def _export_merged(self) -> None:
473469
f"Failed to export:\n{e}",
474470
)
475471
self.status_label.setText(
476-
get_translation(
477-
self.current_language, "error_during_export", "Error during export"
478-
)
472+
get_translation(self.current_language, "error_during_export", "Error during export")
479473
)
480474
finally:
481475
self.progress_bar.setVisible(False)

0 commit comments

Comments
 (0)