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

Simplify logic in sample_chain by factoring out functions #78

Merged
merged 5 commits into from
Mar 3, 2025

Conversation

matt-graham
Copy link
Collaborator

@matt-graham matt-graham commented Mar 3, 2025

Reduces complexity of sample_chain and (internal) chain_loop functions by factoring out some self-contained functionality into utility functions and simplifying threading of chain state through calls. Also reduces complexity limit checked for in linting to previous default of 15.

@matt-graham matt-graham added the enhancement New feature or request label Mar 3, 2025
Copy link

codecov bot commented Mar 3, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (80e8a07) to head (12a8572).
Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #78   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           11        11           
  Lines          574       580    +6     
=========================================
+ Hits           574       580    +6     

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

@matt-graham matt-graham merged commit 336a293 into main Mar 3, 2025
11 checks passed
@matt-graham matt-graham deleted the mmg/sample-chain-refactor branch March 3, 2025 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant