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

Adds script_env support #65

Merged
merged 13 commits into from
Jun 3, 2024
Merged

Conversation

schuylermartin45
Copy link
Collaborator

@schuylermartin45 schuylermartin45 commented May 24, 2024

  • Adds basic support for upgrading a recipe that contains a script_env section.
    • NOTE: There is one edge case that is not currently supported and is likely best left for a human to fix. The conversion process will flag this with an error.
  • Adds unit tests

Fixes #64

@schuylermartin45 schuylermartin45 requested a review from a team as a code owner May 24, 2024 12:49
def set_key_conditionally(dictionary: dict[str, JsonType], key: str, value: JsonType) -> None:
"""
Convenience function that conditionally includes a key-value pair in a dictionary if the value is truthy.
Great for cheating McCabe ratings in complex JSON/YAML operations!
Copy link
Contributor

Choose a reason for hiding this comment

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

😆

@schuylermartin45 schuylermartin45 merged commit 3c69a06 into main Jun 3, 2024
11 checks passed
@schuylermartin45 schuylermartin45 deleted the smartin_script_env_support branch June 3, 2024 19:05
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.

/build/script needs to be upgraded
2 participants