Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MVP for "add-ons" flow within kedro new CLI command (#2987)
* Update prompts.yml Signed-off-by: SajidAlamQB <90610031+SajidAlamQB@users.noreply.github.com> * Update starters.py Signed-off-by: SajidAlamQB <90610031+SajidAlamQB@users.noreply.github.com> * add post_gen_project in cookiecutter hooks Signed-off-by: SajidAlamQB <90610031+SajidAlamQB@users.noreply.github.com> * add confirmation message for the options selected Signed-off-by: SajidAlamQB <90610031+SajidAlamQB@users.noreply.github.com> * Update post_gen_project.py Signed-off-by: SajidAlamQB <90610031+SajidAlamQB@users.noreply.github.com> * changes based on review Signed-off-by: SajidAlamQB <90610031+SajidAlamQB@users.noreply.github.com> * Lint Signed-off-by: Ahdra Merali <ahdra.merali@quantumblack.com> * Remove documentation requirements Signed-off-by: Ahdra Merali <ahdra.merali@quantumblack.com> * Remove testing requirements Signed-off-by: Ahdra Merali <ahdra.merali@quantumblack.com> * Remove leftover linting requirements Signed-off-by: Ahdra Merali <ahdra.merali@quantumblack.com> * Lint Signed-off-by: Ahdra Merali <ahdra.merali@quantumblack.com> * Add add-on requirements when an addon is selected Signed-off-by: lrcouto <laurarccouto@gmail.com> * Correct file path Signed-off-by: lrcouto <laurarccouto@gmail.com> * Update tests with new default template files number Signed-off-by: Ahdra Merali <ahdra.merali@quantumblack.com> * Update tests with add-ons argument Signed-off-by: Ahdra Merali <ahdra.merali@quantumblack.com> * Make lint Signed-off-by: Ahdra Merali <ahdra.merali@quantumblack.com> * Lint Signed-off-by: Ahdra Merali <ahdra.merali@quantumblack.com> * Make tests use all add-ons by default Signed-off-by: Ahdra Merali <ahdra.merali@quantumblack.com> * Make unit tests use no add-ons by default Signed-off-by: Ahdra Merali <ahdra.merali@quantumblack.com> * Add installing project dependencies to e2e tests Signed-off-by: Ahdra Merali <ahdra.merali@quantumblack.com> * Add linting requirements, organize code Signed-off-by: lrcouto <laurarccouto@gmail.com> * Refactor test for all add on options Signed-off-by: Ahdra Merali <ahdra.merali@quantumblack.com> * Add test to check parsing add-ons Signed-off-by: Ahdra Merali <ahdra.merali@quantumblack.com> * Add scaffolding for add-ons tests Signed-off-by: Ahdra Merali <ahdra.merali@quantumblack.com> * Change name of test class Signed-off-by: Ahdra Merali <ahdra.merali@quantumblack.com> * Correct test names Signed-off-by: Ahdra Merali <ahdra.merali@quantumblack.com> * Correct tests directory Signed-off-by: Ahdra Merali <ahdra.merali@quantumblack.com> * Clean up success message Signed-off-by: Ahdra Merali <ahdra.merali@quantumblack.com> * Fix logging option Signed-off-by: Ahdra Merali <ahdra.merali@quantumblack.com> * Update lint add-on logic Signed-off-by: Ahdra Merali <ahdra.merali@quantumblack.com> * Ensure add-ons message only shows when add-ons are configurable Signed-off-by: Ahdra Merali <ahdra.merali@quantumblack.com> * Add requirement checks to tests Signed-off-by: lrcouto <laurarccouto@gmail.com> * Refactor unit tests Signed-off-by: Ahdra Merali <ahdra.merali@quantumblack.com> * Add validation to add ons in config file Signed-off-by: Ahdra Merali <ahdra.merali@quantumblack.com> * Refactor add-ons flow script Signed-off-by: lrcouto <laurarccouto@gmail.com> * Pass through correct repo name in test Signed-off-by: Ahdra Merali <ahdra.merali@quantumblack.com> * Clean up and clarify text Signed-off-by: Ahdra Merali <ahdra.merali@quantumblack.com> * Wrap hook script inside main function Signed-off-by: Ahdra Merali <ahdra.merali@quantumblack.com> * Revert displayed default Signed-off-by: Ahdra Merali <ahdra.merali@quantumblack.com> * Add range validation Signed-off-by: Ahdra Merali <ahdra.merali@quantumblack.com> * Add tests for add-on range validation Signed-off-by: Ahdra Merali <ahdra.merali@quantumblack.com> * Apply suggestions from code review Co-authored-by: Merel Theisen <49397448+merelcht@users.noreply.github.com> * Update kedro/templates/project/hooks/utils.py Co-authored-by: Merel Theisen <49397448+merelcht@users.noreply.github.com> * Apply suggestions from code review Signed-off-by: Ahdra Merali <ahdra.merali@quantumblack.com> * Remove traceback from add-on validation - review suggestion Signed-off-by: Ahdra Merali <ahdra.merali@quantumblack.com> * Output add-on names when selected (via CLI) Signed-off-by: Ahdra Merali <ahdra.merali@quantumblack.com> * Revert 47d935e and fix tests Signed-off-by: Ahdra Merali <ahdra.merali@quantumblack.com> * Fix test errors Signed-off-by: Ahdra Merali <ahdra.merali@quantumblack.com> * Try remove validation Signed-off-by: Ahdra Merali <ahdra.merali@quantumblack.com> * Add validation back Signed-off-by: Ahdra Merali <ahdra.merali@quantumblack.com> * Add config file input validation Signed-off-by: Ahdra Merali <ahdra.merali@quantumblack.com> * Add /site-packages/ to coverage report omit Signed-off-by: Ahdra Merali <ahdra.merali@quantumblack.com> * Lint Signed-off-by: Ahdra Merali <ahdra.merali@quantumblack.com> * Remove duplicate error message Signed-off-by: Ahdra Merali <ahdra.merali@quantumblack.com> * Lint Signed-off-by: Ahdra Merali <ahdra.merali@quantumblack.com> * Remove suppression Signed-off-by: Ahdra Merali <ahdra.merali@quantumblack.com> * Merge develop into fead/add-ons-flow Signed-off-by: Ahdra Merali <ahdra.merali@quantumblack.com> * Prep for merge Signed-off-by: Ahdra Merali <ahdra.merali@quantumblack.com> * Remove suppression Signed-off-by: Ahdra Merali <ahdra.merali@quantumblack.com> * Apply changes from code review Signed-off-by: Ahdra Merali <ahdra.merali@quantumblack.com> * Add clarification to error messages Signed-off-by: Ahdra Merali <ahdra.merali@quantumblack.com> * Remove suppression Signed-off-by: Ahdra Merali <ahdra.merali@quantumblack.com> * Correct files in starter template Signed-off-by: Ahdra Merali <ahdra.merali@quantumblack.com> * Fix broken link Signed-off-by: Ahdra Merali <ahdra.merali@quantumblack.com> * Add project teardown Signed-off-by: Ahdra Merali <ahdra.merali@quantumblack.com> * Try be more direct Signed-off-by: Ahdra Merali <ahdra.merali@quantumblack.com> * Try be more direct pt 2 Signed-off-by: Ahdra Merali <ahdra.merali@quantumblack.com> * Try be more direct pt 3 Signed-off-by: Ahdra Merali <ahdra.merali@quantumblack.com> * Try be more direct pt 4 Signed-off-by: Ahdra Merali <ahdra.merali@quantumblack.com> * Fix clean-up Signed-off-by: Ahdra Merali <ahdra.merali@quantumblack.com> * Fix type Signed-off-by: Ahdra Merali <ahdra.merali@quantumblack.com> * Apply suggestions from code review Co-authored-by: Sajid Alam <90610031+SajidAlamQB@users.noreply.github.com> * Lint Signed-off-by: Ahdra Merali <ahdra.merali@quantumblack.com> * Add docstring Signed-off-by: Ahdra Merali <ahdra.merali@quantumblack.com> * Add changes to RELEASE.md Signed-off-by: Ahdra Merali <ahdra.merali@quantumblack.com> --------- Signed-off-by: SajidAlamQB <90610031+SajidAlamQB@users.noreply.github.com> Signed-off-by: Ahdra Merali <ahdra.merali@quantumblack.com> Signed-off-by: lrcouto <laurarccouto@gmail.com> Co-authored-by: L. R. Couto <57910428+lrcouto@users.noreply.github.com> Co-authored-by: Ahdra Merali <ahdra.merali@quantumblack.com> Co-authored-by: lrcouto <laurarccouto@gmail.com> Co-authored-by: Ahdra Merali <90615669+AhdraMeraliQB@users.noreply.github.com> Co-authored-by: Merel Theisen <49397448+merelcht@users.noreply.github.com>
- Loading branch information