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

feat: add an option to exclude packages from freezing #16

Merged
merged 4 commits into from
Feb 27, 2024

Conversation

ajkerrigan
Copy link
Member

@ajkerrigan ajkerrigan commented Feb 27, 2024

It's useful to be able to freeze most dependencies but leave specific packages with deliberately looser/intact version constraints.

Testing from the command level seems necessary (with or without the motivation of coverage failures), but it's definitely more awkward. Tried to cobble together the minimum useful test based on looking at resources like:

That command-level test feels like it could be made clearer/simpler/better, but at this point I'm not sure how 🤔

Copy link

codecov bot commented Feb 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.08%. Comparing base (9f1ef28) to head (a594ffe).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #16      +/-   ##
==========================================
+ Coverage   90.59%   97.08%   +6.49%     
==========================================
  Files           1        1              
  Lines         202      206       +4     
==========================================
+ Hits          183      200      +17     
+ Misses         19        6      -13     

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

Confirm that command-level options feed into IcedPoet attributes.
@ajkerrigan ajkerrigan requested a review from kapilt February 27, 2024 22:24
Copy link
Contributor

@kapilt kapilt left a comment

Choose a reason for hiding this comment

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

Thanks lgtm

src/poetry_plugin_freeze/app.py Outdated Show resolved Hide resolved
@ajkerrigan ajkerrigan merged commit 5784857 into cloud-custodian:main Feb 27, 2024
7 checks passed
@ajkerrigan ajkerrigan deleted the ajk/feat/exclude-packages branch February 27, 2024 23:09
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