Skip to content

refactor[parser]: put settings on Module AST node#4569

Merged
charles-cooper merged 7 commits intovyperlang:masterfrom
charles-cooper:refactor/module-settings
Apr 10, 2025
Merged

refactor[parser]: put settings on Module AST node#4569
charles-cooper merged 7 commits intovyperlang:masterfrom
charles-cooper:refactor/module-settings

Conversation

@charles-cooper
Copy link
Copy Markdown
Member

@charles-cooper charles-cooper commented Apr 10, 2025

What I did

How I did it

How to verify it

Commit message

remove `parse_to_ast_with_settings`, and replace it with directly
putting the settings parsed from the pragmas on the AST. this allows us
to respect pragmas on a file-by-file basis if needed.

misc:
* remove dead code (it's duplicated with vyper/ast/utils.py)
* add settings to ast export + ensure it round trips

Description for the changelog

Cute Animal Picture

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

remove `parse_to_ast_with_settings`, and replace it with directly
putting the settings parsed from the pragmas on the AST. this allows us
to respect pragmas on a file-by-file basis if needed.
it's duplicated with vyper/ast/utils.py
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 10, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.66%. Comparing base (0835158) to head (b2f040d).
Report is 85 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4569      +/-   ##
==========================================
+ Coverage   92.58%   92.66%   +0.07%     
==========================================
  Files         123      123              
  Lines       17528    17516      -12     
  Branches     2969     2967       -2     
==========================================
+ Hits        16229    16231       +2     
+ Misses        894      883      -11     
+ Partials      405      402       -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@charles-cooper charles-cooper enabled auto-merge (squash) April 10, 2025 13:09
@charles-cooper charles-cooper merged commit c05c1b9 into vyperlang:master Apr 10, 2025
161 checks passed
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