Closed Galileo-Galilei closed 3 years ago
This will wait the migration to kedro>=0.17.0
(cf. #144) in milestone 0.6.0 because kedro has bradnd new utilities to handle this part. This will remove boilerplate code from the plugin and ensure consistency with future kedro changes.
Description
Kedro enable to declare configuration either in
.kedro.yml
or inpyproject.toml
(in the[tool.kedro]
section). We claim to support both, but the CLI commands are not accessible if the project contains only apyproject.toml file
.Steps to Reproduce
Call
kedro mlflow init
inside a project with no.kedro.yml
file but only apyproject.toml
.Expected Result
The cli commands should be available (
init
)Actual Result
Only the
new
command is available. This is not considered as a kedro project.Your Environment
kedro
andkedro-mlflow
version used (pip show kedro
andpip show kedro-mlflow
): kedro==16.6, kedro-mlflow==0.4.1python -V
): 3.7.9Does the bug also happen with the last version on develop?
Yes
Solution
The error comes from the
is_kedro_project
function which does not consider that a folder is the root of a kdro project if it does not contain a.kedro.yml
.