Skip to content

Enable ruff typing-only import rules (TC) - #3902

Merged
anth-volk merged 3 commits into
masterfrom
ruff-typing-imports
Oct 15, 2026
Merged

anth-volk merged 3 commits into
masterfrom
ruff-typing-imports

Check that models keep the runtime imports their annotations need

018b355
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project succeeded Oct 15, 2026 in 1s

85.71% (+40.44%) compared to 172bbed

View this Pull Request on Codecov

85.71% (+40.44%) compared to 172bbed

Details

Codecov Report

❌ Patch coverage is 26.54867% with 249 lines in your changes missing coverage. Please review.
✅ Project coverage is 85.71%. Comparing base (172bbed) to head (018b355).

Files with missing lines Patch % Lines
...cyengine_api/services/v2/user_policies/services.py 14.28% 5 Missing and 1 partial ⚠️
...olicyengine_api/services/v2/households/services.py 16.66% 4 Missing and 1 partial ⚠️
policyengine_api/services/v2/policies/services.py 16.66% 4 Missing and 1 partial ⚠️
...engine_api/services/v2/policies/transformations.py 16.66% 4 Missing and 1 partial ⚠️
...engine_api/services/v2/user_households/services.py 16.66% 4 Missing and 1 partial ⚠️
policyengine_api/asgi_factory.py 20.00% 3 Missing and 1 partial ⚠️
policyengine_api/data/v2/catalog/records.py 20.00% 3 Missing and 1 partial ⚠️
policyengine_api/data/v2/report_runs.py 20.00% 3 Missing and 1 partial ⚠️
policyengine_api/fastapi_routes/dependencies.py 0.00% 4 Missing ⚠️
...icyengine_api/fastapi_routes/v2/metadata/common.py 20.00% 3 Missing and 1 partial ⚠️
... and 79 more
Additional details and impacted files
@@             Coverage Diff             @@
##           master    #3902       +/-   ##
===========================================
+ Coverage   45.27%   85.71%   +40.44%     
===========================================
  Files         183      198       +15     
  Lines       11084    12355     +1271     
  Branches     1907     2247      +340     
===========================================
+ Hits         5018    10590     +5572     
+ Misses       5644     1083     -4561     
- Partials      422      682      +260     

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