From c1057305c9221ffcb6d2f6e7600c17d7c017dbfe Mon Sep 17 00:00:00 2001 From: Christian Versloot Date: Wed, 7 Feb 2024 17:33:37 +0100 Subject: [PATCH] Ensure proper spacing in error messages (#2399) * Ensure proper spacing in error messages * update TOC (#2406) --------- Co-authored-by: Alex Strick van Linschoten --- src/zenml/cli/stack_components.py | 2 +- src/zenml/integrations/kserve/steps/kserve_deployer.py | 2 +- src/zenml/integrations/mlflow/steps/mlflow_deployer.py | 8 ++++---- src/zenml/integrations/seldon/steps/seldon_deployer.py | 10 +++++----- .../orchestrators/skypilot_base_vm_orchestrator.py | 2 +- .../local_docker/local_docker_orchestrator.py | 2 +- 6 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/zenml/cli/stack_components.py b/src/zenml/cli/stack_components.py index 67fcd5755a..58789c9c9c 100644 --- a/src/zenml/cli/stack_components.py +++ b/src/zenml/cli/stack_components.py @@ -941,7 +941,7 @@ def register_stack_component_flavor_command(source: str) -> None: source_root = source_utils.get_source_root() cli_utils.error( - f"Flavor registration failed! ZenML tried loading the" + f"Flavor registration failed! ZenML tried loading the " f"module `{source}` from path `{source_root}`. If this is " "not what you expect, then please ensure you have run " "`zenml init` at the root of your repository.\n\n" diff --git a/src/zenml/integrations/kserve/steps/kserve_deployer.py b/src/zenml/integrations/kserve/steps/kserve_deployer.py index bf03ec938c..afc8502b8b 100644 --- a/src/zenml/integrations/kserve/steps/kserve_deployer.py +++ b/src/zenml/integrations/kserve/steps/kserve_deployer.py @@ -353,7 +353,7 @@ def kserve_custom_model_deployer_step( # verify that a custom deployer is defined if not params.custom_deploy_parameters: raise ValueError( - "Custom deploy parameter which contains the path of the", + "Custom deploy parameter which contains the path of the ", "custom predict function is required for custom model deployment.", ) diff --git a/src/zenml/integrations/mlflow/steps/mlflow_deployer.py b/src/zenml/integrations/mlflow/steps/mlflow_deployer.py index b4afaf94c8..a93a42d75e 100644 --- a/src/zenml/integrations/mlflow/steps/mlflow_deployer.py +++ b/src/zenml/integrations/mlflow/steps/mlflow_deployer.py @@ -228,10 +228,10 @@ def mlflow_model_registry_deployer_step( """ if not registry_model_version and not registry_model_stage: raise ValueError( - "Either registry_model_version or registry_model_stage must" - "be provided in addition to registry_model_name to the MLflow" - "model registry deployer step. Since the" - "mlflow_model_registry_deployer_step is used in conjunction with" + "Either registry_model_version or registry_model_stage must " + "be provided in addition to registry_model_name to the MLflow " + "model registry deployer step. Since the " + "mlflow_model_registry_deployer_step is used in conjunction with " "the mlflow_model_registry." ) diff --git a/src/zenml/integrations/seldon/steps/seldon_deployer.py b/src/zenml/integrations/seldon/steps/seldon_deployer.py index cb54c1cfc4..e89944e9f1 100644 --- a/src/zenml/integrations/seldon/steps/seldon_deployer.py +++ b/src/zenml/integrations/seldon/steps/seldon_deployer.py @@ -378,15 +378,15 @@ def seldon_mlflow_registry_deployer_step( # Seldon Core model deployer are available if not registry_model_name: raise ValueError( - "registry_model_name must be provided to the MLflow" + "registry_model_name must be provided to the MLflow " "model registry deployer step." ) elif not registry_model_version and not registry_model_stage: raise ValueError( - "Either registry_model_version or registry_model_stage must" - "be provided in addition to registry_model_name to the MLflow" - "model registry deployer step. Since the" - "mlflow_model_registry_deployer_step is used in conjunction with" + "Either registry_model_version or registry_model_stage must " + "be provided in addition to registry_model_name to the MLflow " + "model registry deployer step. Since the " + "mlflow_model_registry_deployer_step is used in conjunction with " "the mlflow_model_registry." ) if service_config.implementation != "MLFLOW_SERVER": diff --git a/src/zenml/integrations/skypilot/orchestrators/skypilot_base_vm_orchestrator.py b/src/zenml/integrations/skypilot/orchestrators/skypilot_base_vm_orchestrator.py index 456a1d85bc..2b68c4738d 100644 --- a/src/zenml/integrations/skypilot/orchestrators/skypilot_base_vm_orchestrator.py +++ b/src/zenml/integrations/skypilot/orchestrators/skypilot_base_vm_orchestrator.py @@ -174,7 +174,7 @@ def prepare_or_run_pipeline( ) if deployment.schedule: logger.warning( - "Skypilot Orchestrator currently does not support the" + "Skypilot Orchestrator currently does not support the " "use of schedules. The `schedule` will be ignored " "and the pipeline will be run immediately." ) diff --git a/src/zenml/orchestrators/local_docker/local_docker_orchestrator.py b/src/zenml/orchestrators/local_docker/local_docker_orchestrator.py index 9b53ff4e38..a194cc0f4c 100644 --- a/src/zenml/orchestrators/local_docker/local_docker_orchestrator.py +++ b/src/zenml/orchestrators/local_docker/local_docker_orchestrator.py @@ -112,7 +112,7 @@ def prepare_or_run_pipeline( """ if deployment.schedule: logger.warning( - "Local Docker Orchestrator currently does not support the" + "Local Docker Orchestrator currently does not support the " "use of schedules. The `schedule` will be ignored " "and the pipeline will be run immediately." )