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 = [