Skip to content

Refactor the economy and calculation services within ruff's complexity limits - #3932

Merged
anth-volk merged 10 commits into
masterfrom
ruff-complexity-economy
Oct 21, 2026
Merged

anth-volk merged 10 commits into
masterfrom
ruff-complexity-economy

Add a changelog fragment for the economy complexity refactors

fcdfb25
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project succeeded Oct 21, 2026 in 1s

86.00% (+36.66%) compared to 72765d2

View this Pull Request on Codecov

86.00% (+36.66%) compared to 72765d2

Details

Codecov Report

❌ Patch coverage is 96.80851% with 12 lines in your changes missing coverage. Please review.
✅ Project coverage is 86.00%. Comparing base (72765d2) to head (fcdfb25).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
policyengine_api/services/economy_service.py 95.91% 3 Missing and 3 partials ⚠️
policyengine_api/services/budget_window_cache.py 33.33% 1 Missing and 1 partial ⚠️
policyengine_api/services/economy_comparison.py 97.59% 0 Missing and 2 partials ⚠️
policyengine_api/worker_spm.py 93.33% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           master    #3932       +/-   ##
===========================================
+ Coverage   49.33%   86.00%   +36.66%     
===========================================
  Files         242      259       +17     
  Lines       14303    15777     +1474     
  Branches     2356     2628      +272     
===========================================
+ Hits         7057    13569     +6512     
+ Misses       6621     1456     -5165     
- Partials      625      752      +127     

☔ View full report in Codecov by Harness.
📢 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.