Add US government bond interest exemption to AL, AR, CA, DC, DE state income taxes (+ tests for AZ, CO, CT, GA, HI)#7667
Open
Add US government bond interest exemption to AL, AR, CA, DC, DE state income taxes (+ tests for AZ, CO, CT, GA, HI)#7667
Conversation
Add us_govt_interest to state AGI subtractions/deductions/exemptions for Alabama, Arkansas, California, District of Columbia, and Delaware. Arizona, Colorado, Connecticut, Georgia, and Hawaii already had this exemption implemented. Add YAML test cases for all 10 states confirming the bond interest exemption is included in the appropriate subtraction variable. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7667 +/- ##
===========================================
- Coverage 97.82% 77.54% -20.28%
===========================================
Files 3 3904 +3901
Lines 92 56341 +56249
Branches 2 271 +269
===========================================
+ Hits 90 43692 +43602
- Misses 1 12609 +12608
- Partials 1 40 +39
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the US government bond interest exemption (
us_govt_interestsubtraction) for states that were missing it, and adds test coverage for all 10 states that now have this exemption implemented.Changes by state
Code changes (added exemption to state AGI calculations):
Test coverage (YAML test cases confirming exemption is included):
Test plan
Each state now has YAML test coverage in
policyengine_us/tests/policy/baseline/gov/states/{STATE}/tax/income/{STATE}_us_govt_bond_interest.yamlthat verifies:Run:
uv run pytest policyengine_us/tests/ -k "us_govt_bond_interest"to validate all tests pass.Closes
Closes #7619 (AL), #7620 (AR), #7621 (AZ), #7622 (CA), #7623 (CO), #7624 (CT), #7625 (DC), #7626 (DE), #7627 (GA), #7628 (HI)