From 936155e2efd0e3d38773dea2c83b7ee96f28c008 Mon Sep 17 00:00:00 2001 From: Pascal Brokmeier Date: Tue, 15 Oct 2024 17:02:50 +0200 Subject: [PATCH] add testsd --- kedro_mlflow/framework/hooks/mlflow_hook.py | 1 + pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/kedro_mlflow/framework/hooks/mlflow_hook.py b/kedro_mlflow/framework/hooks/mlflow_hook.py index 916e880a..9b453473 100644 --- a/kedro_mlflow/framework/hooks/mlflow_hook.py +++ b/kedro_mlflow/framework/hooks/mlflow_hook.py @@ -455,6 +455,7 @@ def on_pipeline_error( def validate_and_sanitize_param_name(name: str) -> str: + # regex taken from MLFlow codebase: https://github.com/mlflow/mlflow/blob/e40e782b6fcab473159e6d4fee85bc0fc10f78fd/mlflow/utils/validation.py#L140C1-L148C44 pattern = r"^[/\w.\- :]*$" if re.match(pattern, name): diff --git a/pyproject.toml b/pyproject.toml index 77d87c87..e561f734 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [tool.pytest.ini_options] -addopts = "--cov=kedro_mlflow --cov-report=html tests/" +addopts = "--cov=kedro_mlflow --cov-report=html" [tool.ruff] exclude = [