Skip to content

Enable ruff structure and import rules (INP, PLC, SLF, N, A, FAST, E) - #3920

Draft
anth-volk wants to merge 21 commits into
masterfrom
ruff-structure-imports
Draft

anth-volk wants to merge 21 commits into
masterfrom
ruff-structure-imports

Describe the new lazily loaded modules and public names in the changelog

06de181
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project succeeded Oct 20, 2026 in 1s

84.17% (+0.09%) compared to 3f7deea

View this Pull Request on Codecov

84.17% (+0.09%) compared to 3f7deea

Details

Codecov Report

❌ Patch coverage is 82.88288% with 19 lines in your changes missing coverage. Please review.
✅ Project coverage is 84.17%. Comparing base (3f7deea) to head (06de181).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
policyengine_api/fastapi_routes/dependencies.py 33.33% 12 Missing ⚠️
policyengine_api/country.py 0.00% 2 Missing ⚠️
policyengine_api/services/user_policy_mirroring.py 0.00% 2 Missing ⚠️
...gine_api/services/household_calculation_service.py 50.00% 1 Missing ⚠️
policyengine_api/services/household_mirroring.py 0.00% 1 Missing ⚠️
policyengine_api/services/policy_mirroring.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3920      +/-   ##
==========================================
+ Coverage   84.08%   84.17%   +0.09%     
==========================================
  Files         255      255              
  Lines       15368    15356      -12     
  Branches     2555     2551       -4     
==========================================
+ Hits        12922    12926       +4     
+ Misses       1686     1675      -11     
+ Partials      760      755       -5     

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