Skip to content
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

Minor tech debts #3429

Merged
merged 2 commits into from
Dec 19, 2023
Merged

Minor tech debts #3429

merged 2 commits into from
Dec 19, 2023

Conversation

DimedS
Copy link
Contributor

@DimedS DimedS commented Dec 14, 2023

Description

This PR closes few issues from #3264:
4:

  • Merging _get_prompts_required() and _select_prompts_to_display() to _get_prompts_required_and_clear_from_CLI_provided()
  • Merging _make_cookiecutter_args() and fetch_template_based_on_tools() to _make_cookiecutter_args_and_fetch_template()

6:
centralising all regex checks in _validate_regex() func

And lines 433-439 were removed as they were deemed unnecessary (modified return to {} instead of None in line 337 to make it possible)

Development notes

Developer Certificate of Origin

We need all contributions to comply with the Developer Certificate of Origin (DCO). All commits must be signed off by including a Signed-off-by line in the commit message. See our wiki for guidance.

If your PR is blocked due to unsigned commits, then you must follow the instructions under "Rebase the branch" on the GitHub Checks page for your PR. This will retroactively add the sign-off to all unsigned commits and allow the DCO check to pass.

Checklist

  • Read the contributing guidelines
  • Signed off each commit with a Developer Certificate of Origin (DCO)
  • Opened this PR as a 'Draft Pull Request' if it is work-in-progress
  • Updated the documentation to reflect the code changes
  • Added a description of this change in the RELEASE.md file
  • Added tests to cover my changes
  • Checked if this change will affect Kedro-Viz, and if so, communicated that with the Viz team

Signed-off-by: Dmitry Sorokin <dmd40in@gmail.com>
@DimedS DimedS linked an issue Dec 14, 2023 that may be closed by this pull request
12 tasks
@DimedS DimedS marked this pull request as ready for review December 14, 2023 22:29
@DimedS DimedS requested review from lrcouto, SajidAlamQB and ankatiyar and removed request for merelcht December 14, 2023 22:29
Copy link
Contributor

@lrcouto lrcouto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, looks cleaner now!

Copy link
Contributor

@SajidAlamQB SajidAlamQB left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is some awesome refactoring and simplification, thank you @DimedS its looking a lot cleaner now! 🔥

@@ -666,12 +625,13 @@ def _make_cookiecutter_context_for_prompts(cookiecutter_dir: Path):
return cookiecutter_context.get("cookiecutter", {})


def _make_cookiecutter_args(
def _make_cookiecutter_args_and_fetch_template(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, I like this.

@DimedS DimedS merged commit c02a91b into main Dec 19, 2023
30 checks passed
@DimedS DimedS deleted the minor-tech-debts branch December 19, 2023 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Minor tech debts in the project creation flow
3 participants