-
Notifications
You must be signed in to change notification settings - Fork 928
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kedro pipeline create
pipeline.py with missing import
#3557
Comments
+1000 this is a very common annoyance. Aside from def create_pipeline(**kwargs) -> Pipeline:
return pipeline([
node(
func=...,
inputs=...,
outputs=...,
)
]) |
@astrojuanlu It sounds good to me at first, but then I think it may causes issues because of pipeline autodiscovery. As soon as someone do |
For context, this comes from
Let's do a quick exploration of how the UX is like in the case of a dummy node, if it's too bad or confusing let's settle on |
Another option, is to have from kedro.pipeline import Pipeline, pipeline # , node |
Another user complained about this today |
Description
A user was facing this problem:
Brandon Meek
26 minutes ago
Sorry, I meant from the boilerplate created after running kedro pipeline create ...
Context
The current CLI created this file, it used to import
node
also but was removed when we introducedruff
.The problem is because
node
is not used so the linter pick it up. We should either have a #noqa or have linter skip the template file.Expected Result
Expectation is that
kedro pipeline create
creates a runnable pipeline with the correct imports.Actual Result
The
node
import is missing.Your Environment
pip show kedro
orkedro -V
):python -V
):The text was updated successfully, but these errors were encountered: