-
Notifications
You must be signed in to change notification settings - Fork 930
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
Project templating using TemplatedConfigLoader raises ValidationError in 0.18.0 #1402
Comments
Hi @patrikhardin thanks for raising this - we're looking into it. As part of 0.18.x there is a new |
Thanks @patrikhardin. For the time being, here's a super hacky fix. Use the following in settings.py:
This will trick the validation code into thinking that |
Here's a new version of test_settings.py that picks up on this and also does some more thorough testing of other settings: https://gist.github.com/AntonyMilneQB/50159cbbde40399fc6d9094fef3b0fee The problem is that it's not immediately possible to get both tests passing simultaneously. Changing
We were doing the last of these options before #1064 which changed |
Description
When following the guide for Template configuration, Kedro 0.18.0 raises ValidationError as
kedro.config.templated_config.TemplatedConfigLoader
is not recognized as a subclass ofkedro.config.config.ConfigLoader
.Context
This bug hinders me from using the
TemplatedConfigLoader
, according to the documentation.Steps to Reproduce
settings.py
file.Uncomment lines 28,29,31,32,33 as suggested in the guide. Expected config:
Expected Result
Defeault pipeline should run with global config keys overwritten.
Actual Result
ValidationError is raised.
Your Environment
pip show kedro
orkedro -V
):0.18.0
python -V
):3.9.10
macOS 12.3
The text was updated successfully, but these errors were encountered: