-
Notifications
You must be signed in to change notification settings - Fork 60
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
Change starters to use OmegaConfigLoader #145
Conversation
Linting is failing - you may want to try to do a You can do |
If you read the log or try to run it locally you will see this error. I think we need to suppress the linting, and in 0.19 the default should be just OmegaConfigLoader. |
Yeah I see it now. Do you suppress it with |
@lrcouto https://www.flake8rules.com/rules/E402.html - the warning should be coming from flake, which is usually with inline comment |
Thank you! |
@@ -3,7 +3,7 @@ | |||
https://kedro.readthedocs.io/en/stable/kedro_project_setup/settings.html.""" | |||
|
|||
# Instantiated project hooks. | |||
from {{cookiecutter.python_package}}.hooks import SparkHooks | |||
from {{cookiecutter.python_package}}.hooks import SparkHooks # noqa: import-outside-toplevel |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you try to run this locally? I am not sure if using the name of the rule works.
We used a few linter and they are not so consistent.
pylint
use # pylint: disable=<rule_number> or <rule_name>
but flake
use # noqa: <rule_number>
, AFAIK it doesn't work with the name but please check.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed it to the rule number.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I've found the error.
Tests failing because of PyYAML and Cython 3 yaml/pyyaml#601 (comment) #144 updated the PyYAML upper version cap, so hopefully updating this branch should suffice. |
.circleci/config.yml
Outdated
@@ -58,13 +58,13 @@ commands: | |||
description: Run `kedro run` end to end tests for all starters | |||
steps: | |||
- run: | |||
command: behave features/run.feature | |||
command: behave features/run.feature --summary |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this part of the starters changes, or is there some other motivation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added this initially because the e2e test log is too noisy and make it hard to see the actual error, this doesn't seem to help so I will revert this
280215b
to
ee0e108
Compare
@@ -22,8 +22,9 @@ | |||
# CONF_SOURCE = "conf" | |||
|
|||
# Class that manages how configuration is loaded. | |||
# from kedro.config import OmegaConfigLoader | |||
# CONFIG_LOADER_CLASS = OmegaConfigLoader | |||
from kedro.config import OmegaConfigLoader # noqa: E402 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://github.com/kedro-org/kedro-starters/pull/145/files I see that using the rule name works, do you want to apply the same change here?
Signed-off-by: lrcouto <laurarccouto@gmail.com>
Signed-off-by: lrcouto <laurarccouto@gmail.com>
Signed-off-by: lrcouto <laurarccouto@gmail.com>
Signed-off-by: L. R. Couto <laurarccouto@gmail.com> Signed-off-by: lrcouto <laurarccouto@gmail.com>
Signed-off-by: lrcouto <laurarccouto@gmail.com>
Signed-off-by: lrcouto <laurarccouto@gmail.com>
This reverts commit c75a081. Signed-off-by: lrcouto <laurarccouto@gmail.com>
5a38521
to
ac4facb
Compare
Signed-off-by: lrcouto <laurarccouto@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 👍
Motivation and Context
Part of the resolution for Make starters use OmegaConfigLoader. Changes on the
kedro
repo can be seen on this PR.How has this been tested?
Tested on gitpod workspace running
make test
, and by creating a new Kedro project with a starter.Checklist