Skip to content

Commit

Permalink
Run black
Browse files Browse the repository at this point in the history
  • Loading branch information
ptsavol committed Dec 17, 2024
1 parent ef862ce commit 8f28a0a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions spinetoolbox/spine_engine_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

class GUIUpdater(QObject):
"""Contains slots for updating UI widgets based on messages received from the engine worker."""

@Slot(list)
def handle_dag_execution_started(self, project_items):
for item in project_items:
Expand Down
8 changes: 5 additions & 3 deletions spinetoolbox/widgets/settings_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,8 +435,10 @@ def _update_remote_execution_page_widget_status(self, state):

@Slot(bool)
def _remove_all_settings(self, _=False):
msg = ("Do you want to reset all settings to factory defaults? <b>Spine Toolbox will be shutdown</b> "
"for the changes to take effect.<br/>Continue?")
msg = (

Check warning on line 438 in spinetoolbox/widgets/settings_widget.py

View check run for this annotation

Codecov / codecov/patch

spinetoolbox/widgets/settings_widget.py#L438

Added line #L438 was not covered by tests
"Do you want to reset all settings to factory defaults? <b>Spine Toolbox will be shutdown</b> "
"for the changes to take effect.<br/>Continue?"
)
box_title = "Close app and return to factory defaults?"
box = QMessageBox(
QMessageBox.Icon.Question,
Expand Down Expand Up @@ -1050,7 +1052,7 @@ def _edit_remote_host(self, new_text):
"""
prep_str = "tcp://"
if new_text.startswith(prep_str): # prep str already present
new = new_text[len(prep_str):]
new = new_text[len(prep_str) :]

Check warning on line 1055 in spinetoolbox/widgets/settings_widget.py

View check run for this annotation

Codecov / codecov/patch

spinetoolbox/widgets/settings_widget.py#L1055

Added line #L1055 was not covered by tests
else: # First letter has been entered
new = new_text
# Clear when only prep str present or when clear (x) button is clicked
Expand Down

0 comments on commit 8f28a0a

Please sign in to comment.