Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/find_orphaned_assets.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ def main():
human_readable_size = get_human_readable_size(total_size)

confirm = input(
f"⚠️ WARNING: This will delete {total_files} image assets ({human_readable_size}). Type 'YES' to confirm: "
f"⚠️ WARNING: This will delete {total_files} image assets ({human_readable_size}). Type 'YES' to confirm: "
)

if confirm.strip() == "YES":
Expand Down
2 changes: 1 addition & 1 deletion src/zenml/config/schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def _ensure_cron_or_periodic_schedule_configured(self) -> "Schedule":
if self.cron_expression and periodic_schedule:
logger.warning(
"This schedule was created with a cron expression as well as "
"values for `start_time` and `interval_seconds`. The resulting "
"values for `start_time` and `interval_second`. The resulting "
"behavior depends on the concrete orchestrator implementation "
"but will usually ignore the interval and use the cron "
"expression."
Expand Down
3 changes: 2 additions & 1 deletion src/zenml/services/local/local_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,8 @@ def _stop_daemon(self, force: bool = False) -> None:
p = psutil.Process(pid)
except psutil.Error:
logger.error(
"Could not find process for for service '%s' ...", self
"Could not find process for service '%s' ...",
self,
)
return
if force:
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/utils/test_io_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def test_write_file_contents_as_string_works(tmp_path):
def test_write_file_contents_as_string_fails_with_non_string_types(tmp_path):
"""Tests writing to file."""
file_path = os.path.join(tmp_path, "test.txt")
with pytest.raises(ValueError):
with pytest.raises(ValueError, match="Content must be of type str"):
io_utils.write_file_contents_as_string(file_path, 1)


Expand Down
Loading