Add US government bond interest exemption to IL, KS, MA, MD state income taxes (+ tests for IA, ID, IN, KY, LA, MI)#7673
Open
Add US government bond interest exemption to IL, KS, MA, MD state income taxes (+ tests for IA, ID, IN, KY, LA, MI)#7673
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7673 +/- ##
===========================================
+ Coverage 97.82% 100.00% +2.17%
===========================================
Files 3 2 -1
Lines 92 34 -58
Branches 2 0 -2
===========================================
- Hits 90 34 -56
+ Misses 1 0 -1
+ Partials 1 0 -1
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:
|
Add us_govt_interest as a subtraction/deduction for IA, ID, IL, IN, KS, KY, LA, MA, MD, and MI. States IA, ID, IN, KY, LA, MI already had this in their parameter files; IL, KS, MA, MD needed code changes. Includes YAML test cases for all 10 states. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
422b7ef to
9eac56a
Compare
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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
This PR adds US government bond interest exemptions to 10 states' state income tax calculations. Bond interest from US government securities (Treasury bonds, notes, bills, etc.) is often exempt from state taxation. This change implements that exemption across multiple state tax systems.
Changes
Code changes (4 states needed implementation):
il_us_govt_interest_subtractionvariable to state income base subtractionsks_us_govt_interest_subtractionvariable to AGI subtractions calculationma_us_govt_interest_subtractionvariable and updated Part B AGI logic to exclude it from taxable incomemd_us_govt_interest_subtractionvariable to AGI subtractionsTest-only additions (6 states already had parameters):
ia_us_govt_interest_subtractiontest casesid_us_govt_interest_subtractiontest casesin_us_govt_interest_deductiontest casesky_us_govt_interest_subtractiontest casesla_us_govt_interest_exemptiontest casesmi_us_govt_interest_subtractiontest casesAll 10 states include YAML test cases validating the exemption logic.
Closes
Test plan
uv run pytest policyengine_us/tests/uv run pytest policyengine_us/tests/states/{state_code}/tax/income/