Repository: Galileo-Galilei/kedro-mlflow (language: python)

Issue:
:arrow_up: Upgrade ruff, sphinx_rtd_theme, sphinx-click and scikit-learn
## Description
 Close #490 #492 #517 #518

## Development notes
Upgrade dependencies 

## Checklist

- [x] Read the [contributing](https://github.com/Galileo-Galilei/kedro-mlflow/blob/master/CONTRIBUTING.md) guidelines
- [x] Open this PR as a 'Draft Pull Request' if it is work-in-progress
- [ ] Update the documentation to reflect the code changes
- [ ] Add a description of this change and add your name to the list of supporting contributions in the [`CHANGELOG.md`](https://github.com/Galileo-Galilei/kedro-mlflow/blob/master/CHANGELOG.md) file. Please respect [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) guidelines.
- [ ] Add tests to cover your changes

## Notice

- [x] I acknowledge and agree that, by checking this box and clicking "Submit Pull Request":

- I submit this contribution under the [Apache 2.0 license](https://www.apache.org/licenses/LICENSE-2.0.txt) and represent that I am entitled to do so on behalf of myself, my employer, or relevant third parties, as applicable.
- I certify that (a) this contribution is my original creation and / or (b) to the extent it is not my original creation, I am authorised to submit this contribution on behalf of the original creator(s) or their licensees.
- I certify that the use of this contribution as authorised by the Apache 2.0 license does not violate the intellectual property rights of anyone else.



Discussion / hints:

Fix patch:
diff --git a/setup.py b/setup.py
index f1bf9225..4d42195b 100644
--- a/setup.py
+++ b/setup.py
@@ -50,7 +50,7 @@ def _parse_requirements(path, encoding="utf-8"):
             "pytest-cov>=2.8.0, <5.0.0",
             "pytest-lazy-fixture>=0.6.0, <1.0.0",
             "pytest-mock>=3.1.0, <4.0.0",
-            "ruff>==0.1.0,<0.2.0",  # ensure consistency with pre-commit
+            "ruff>=0.1.0,<0.2.0",  # ensure consistency with pre-commit
             "scikit-learn>=0.23.0, <1.5.0",
             "kedro-datasets[pandas.CSVDataSet]",
         ],


Test patch:
diff --git a/tests/config/test_get_mlflow_config.py b/tests/config/test_get_mlflow_config.py
index 5a46312b..f90b5cd8 100644
--- a/tests/config/test_get_mlflow_config.py
+++ b/tests/config/test_get_mlflow_config.py
@@ -179,6 +179,9 @@ def fake_project(tmp_path, local_logging_config):
                 "project_name": "fake_project",
                 "package_name": "fake_package",
                 "kedro_init_version": kedro_version,
+                "tools": "['None']",
+                "example_pipeline": "False",
+                "source_dir": "src",
             }
         }
     }
diff --git a/tests/conftest.py b/tests/conftest.py
index cc06e0f3..460c0952 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -58,7 +58,8 @@ def kedro_project(tmp_path):
         "repo_name": _FAKE_PROJECT_NAME,
         "python_package": _FAKE_PROJECT_NAME,
         "kedro_version": kedro_version,
-        "add_ons": "none",
+        "tools": "['None']",
+        "example_pipeline": "False",
     }
 
     cookiecutter(
diff --git a/tests/framework/cli/test_cli_modelify.py b/tests/framework/cli/test_cli_modelify.py
index 486aa06d..434fd5c9 100644
--- a/tests/framework/cli/test_cli_modelify.py
+++ b/tests/framework/cli/test_cli_modelify.py
@@ -34,7 +34,8 @@ def kp_for_modelify(tmp_path):
         "repo_name": _FAKE_MODELIFY_PROJECT_NAME,
         "python_package": _FAKE_MODELIFY_PROJECT_NAME,
         "kedro_version": kedro_version,
-        "add_ons": "none",
+        "tools": "['None']",
+        "example_pipeline": "False",
     }
 
     cookiecutter(
@@ -140,7 +141,8 @@ def kp_for_modelify_with_parameters(tmp_path):
         "repo_name": _FAKE_MODELIFY_PROJECT_NAME,
         "python_package": _FAKE_MODELIFY_PROJECT_NAME,
         "kedro_version": kedro_version,
-        "add_ons": "none",
+        "tools": "['None']",
+        "example_pipeline": "False",
     }
 
     cookiecutter(
@@ -391,8 +393,8 @@ def test_modelify_with_infer_signature_arg(
     loaded_model = mlflow.pyfunc.load_model(f"runs:/{new_run_id}/model")
 
     assert loaded_model.metadata.get_input_schema().to_dict() == [
-        {"name": "col_int", "type": "long"},
-        {"name": "col_str", "type": "string"},
+        {"name": "col_int", "type": "long", "required": True},
+        {"name": "col_str", "type": "string", "required": True},
     ]
 
 
diff --git a/tests/framework/hooks/test_hook_pipeline_ml.py b/tests/framework/hooks/test_hook_pipeline_ml.py
index a575fdae..5dee3ab1 100644
--- a/tests/framework/hooks/test_hook_pipeline_ml.py
+++ b/tests/framework/hooks/test_hook_pipeline_ml.py
@@ -301,14 +301,14 @@ def test_mlflow_hook_save_pipeline_ml(
             assert (
                 (trained_model.metadata.signature.to_dict())
                 == {
-                    "inputs": '[{"name": "a", "type": "long"}]',
+                    "inputs": '[{"name": "a", "type": "long", "required": true}]',
                     "outputs": None,
                     "params": None,
                 }
             ) or (
                 (trained_model.metadata.signature.to_dict())
                 == {
-                    "inputs": '[{"type": "long", "name": "a"}]',
+                    "inputs": '[{"type": "long", "name": "a", "required": true}]',
                     "outputs": None,
                     "params": None,
                 }