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

Clean up metadata addition to struct definitions #70

Merged
merged 5 commits into from
Aug 4, 2024

Conversation

apkille
Copy link
Member

@apkille apkille commented Jul 22, 2024

Originates from discussion in #62. The withmetadata macro is designed to add a metadata dict to certain struct definitions. Currently, it is unnecessarily messy and hard to read because it doesn't make use of any pattern-matching packages. This PR makes use of tools from MacroTools.jl to clean up the macro.

@apkille apkille requested a review from Krastanov July 22, 2024 18:28
Copy link

codecov bot commented Jul 22, 2024

Codecov Report

Attention: Patch coverage is 71.42857% with 4 lines in your changes missing coverage. Please review.

Project coverage is 73.70%. Comparing base (4d28a97) to head (975c44b).

Files Patch % Lines
src/QSymbolicsBase/QSymbolicsBase.jl 71.42% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #70      +/-   ##
==========================================
- Coverage   73.88%   73.70%   -0.18%     
==========================================
  Files          18       18              
  Lines         804      791      -13     
==========================================
- Hits          594      583      -11     
+ Misses        210      208       -2     

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

@Krastanov
Copy link
Member

the tests are not failing and this is pretty darn fundamental to the library, so it must be good to merge. Feel free to merge as you find appropriate

@apkille apkille merged commit 9e24b81 into QuantumSavory:main Aug 4, 2024
12 of 15 checks passed
@apkille apkille deleted the macros branch August 4, 2024 01:32
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