Skip to content

Commit

Permalink
add testsd
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalwhoop committed Oct 15, 2024
1 parent fa804eb commit 936155e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions kedro_mlflow/framework/hooks/mlflow_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 = [
Expand Down

0 comments on commit 936155e

Please sign in to comment.