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 refactoring for starters #3480

Merged
merged 2 commits into from
Jan 4, 2024
Merged

Minor refactoring for starters #3480

merged 2 commits into from
Jan 4, 2024

Conversation

noklam
Copy link
Contributor

@noklam noklam commented Jan 4, 2024

Description

Minor refactoring - remove the condition and use existing function to parse tool strings consistently.

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: Nok <nok.lam.chan@quantumblack.com>
Copy link
Contributor

@DimedS DimedS left a comment

Choose a reason for hiding this comment

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

Thank you, @noklam , I agree that it's more clear to move parsing on top

Copy link
Contributor

@AhdraMeraliQB AhdraMeraliQB left a comment

Choose a reason for hiding this comment

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

Nice!

@@ -793,14 +793,15 @@ def _validate_range(start, end):
click.secho(message, fg="red", err=True)
sys.exit(1)

# Guard clause if tools_str is None, which can happen if prompts.yml is removed
Copy link
Contributor

Choose a reason for hiding this comment

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

We can remove this comment, as this would now happen if tools is omitted from config - no longer a guard clause but inspected behaviour

Signed-off-by: Nok <nok.lam.chan@quantumblack.com>
@noklam noklam marked this pull request as ready for review January 4, 2024 13:50
@noklam noklam requested a review from merelcht as a code owner January 4, 2024 13:50
@noklam noklam enabled auto-merge (squash) January 4, 2024 13:51
@noklam noklam merged commit cfe268a into main Jan 4, 2024
30 checks passed
@noklam noklam deleted the noklam/refactor-starters-logic branch January 4, 2024 14:16
@noklam noklam self-assigned this Jan 4, 2024
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.

3 participants