Skip to content

Refactor the application package within ruff's complexity limits - #3933

Merged
anth-volk merged 43 commits into
masterfrom
ruff-complexity-application
Oct 21, 2026
Merged

anth-volk merged 43 commits into
masterfrom
ruff-complexity-application

Compile recorded statements with the v2 driver's dialect

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

87.86% (+38.62%) compared to 4805a04

View this Pull Request on Codecov

87.86% (+38.62%) compared to 4805a04

Details

Codecov Report

❌ Patch coverage is 95.50000% with 45 lines in your changes missing coverage. Please review.
✅ Project coverage is 87.86%. Comparing base (4805a04) to head (188ad62).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
policyengine_api/asgi_factory.py 96.35% 2 Missing and 3 partials ⚠️
policyengine_api/data/v2/catalog/extraction.py 94.31% 0 Missing and 5 partials ⚠️
...gine_api/services/v2/households/transformations.py 92.30% 2 Missing and 3 partials ⚠️
...es/v2/user_households/database_connectors/reads.py 0.00% 1 Missing and 2 partials ⚠️
...ices/v2/user_policies/database_connectors/reads.py 40.00% 2 Missing and 1 partial ⚠️
...yengine_api/data/v2/catalog/publication_staging.py 92.85% 1 Missing and 1 partial ⚠️
...ngine_api/fastapi_routes/v2/user_reports/routes.py 75.00% 1 Missing and 1 partial ⚠️
...e_api/fastapi_routes/v2/user_simulations/routes.py 75.00% 1 Missing and 1 partial ⚠️
policyengine_api/services/user_policy_mirroring.py 91.66% 1 Missing and 1 partial ⚠️
...vices/v2/user_reports/database_connectors/reads.py 0.00% 2 Missing ⚠️
... and 14 more
Additional details and impacted files
@@             Coverage Diff             @@
##           master    #3933       +/-   ##
===========================================
+ Coverage   49.24%   87.86%   +38.62%     
===========================================
  Files         243      259       +16     
  Lines       14398    16149     +1751     
  Branches     2343     2630      +287     
===========================================
+ Hits         7090    14190     +7100     
+ Misses       6682     1283     -5399     
- Partials      626      676       +50     

☔ 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.