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

refactor[ux]: add venom as experimental-codegen alias #4337

Conversation

sandbubbles
Copy link
Collaborator

@sandbubbles sandbubbles commented Oct 28, 2024

What I did

Make a "venom" alias to "experimental_codegen" flag.
See #4334.

How I did it

Add the alias to cli, pre-parser, and json parser.

How to verify it

All exisiting tests work with old flas as well as new tests with venom.

Commit message

Make "venom" an alternative alias to the "experimental_codegen" flag.
Add the alias to cli, pre-parser, and json parser.

Description for the changelog

Cute Animal Picture

Put a link to a cute animal picture inside the parenthesis-->

@@ -254,6 +254,8 @@ def get_settings(input_dict: dict) -> Settings:

optimize = input_dict["settings"].get("optimize")
experimental_codegen = input_dict["settings"].get("experimentalCodegen")
if experimental_codegen is None:
experimental_codegen = input_dict["settings"].get("venom")
Copy link
Member

Choose a reason for hiding this comment

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

Maybe throw an exception if both are set

Copy link
Member

@charles-cooper charles-cooper left a comment

Choose a reason for hiding this comment

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

Thanks! Can we add tests for conflicts - when both are set

@charles-cooper charles-cooper changed the title refactor [ux]: experimental codegen to venom refactor[ux]: experimental codegen to venom Oct 28, 2024
@@ -218,6 +237,15 @@ def test_parse_pragmas(code, pre_parse_settings, compiler_data_settings, mock_ve
# pragma evm-version cancun
# pragma evm-version shanghai
""",
# duplicit setting of venom
Copy link
Member

Choose a reason for hiding this comment

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

typo: duplicate

@charles-cooper charles-cooper changed the title refactor[ux]: experimental codegen to venom refactor[ux]: add venom as experimental-codegen alias Nov 5, 2024
@charles-cooper charles-cooper enabled auto-merge (squash) November 5, 2024 13:13
@charles-cooper charles-cooper merged commit 471a556 into vyperlang:master Nov 5, 2024
158 checks passed
sandbubbles added a commit to sandbubbles/vyper that referenced this pull request Nov 7, 2024
…4337)

Make "venom" an alternative alias to the "experimental_codegen" flag.
Add the alias to cli, pre-parser, and json parser.
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.

2 participants