Skip to content

[codex] Add Kansas CSFP county filtering#8585

Draft
daphnehanse11 wants to merge 1 commit into
PolicyEngine:mainfrom
daphnehanse11:codex/8580-ks-csfp-county-filter
Draft

[codex] Add Kansas CSFP county filtering#8585
daphnehanse11 wants to merge 1 commit into
PolicyEngine:mainfrom
daphnehanse11:codex/8580-ks-csfp-county-filter

Conversation

@daphnehanse11
Copy link
Copy Markdown
Collaborator

Summary

  • Adds ks_dcf_csfp_county_eligible from Kansas DCF CSFP service-area sources.
  • Gates federal CSFP eligibility by the Kansas county variable when state_code is KS.
  • Adds direct county tests and integrated CSFP eligibility tests.

Closes #8580.

Validation

  • uv run --extra dev ruff check policyengine_us/variables/gov/states/ks/dcf/csfp/ks_dcf_csfp_county_eligible.py policyengine_us/variables/gov/usda/csfp/commodity_supplemental_food_program_eligible.py
  • uv run python -m policyengine_core.scripts.policyengine_command test policyengine_us/tests/policy/baseline/gov/states/ks/dcf/csfp/ks_dcf_csfp_county_eligible.yaml -c policyengine_us
  • uv run python -m policyengine_core.scripts.policyengine_command test policyengine_us/tests/policy/baseline/gov/usda/csfp/commodity_supplemental_food_program_eligible.yaml -c policyengine_us

@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 3, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (17cda0d) to head (ca3f0eb).
⚠️ Report is 25 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #8585   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         2    +1     
  Lines           19        32   +13     
=========================================
+ Hits            19        32   +13     
Flag Coverage Δ
unittests 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Kansas county eligibility filtering for CSFP

1 participant