Skip to content

Commit

Permalink
Use adjusted gross income in withheld state income taxes (PolicyEngin…
Browse files Browse the repository at this point in the history
…e#5053)

* Add self-employment income to withheld state income taxes
Fixes PolicyEngine#5041

* changelog

* minor

* Separate `takes_up_snap_if_eligible` variable

* adj variables

* tests

* changelog

* Fix errors in withheld income tax variables

* Add coverage to dev deps

* Bump Core

* Fix test variables

* chore: Disable Windows tests temporarily

* fix: Remove Windows tests from PR, as well

* fix: Remove Windows tests

---------

Co-authored-by: vrathi101 <[email protected]>
Co-authored-by: Nikhil Woodruff <[email protected]>
Co-authored-by: Anthony Volk <[email protected]>
  • Loading branch information
4 people authored Sep 27, 2024
1 parent 7ba8021 commit 75fece7
Show file tree
Hide file tree
Showing 91 changed files with 288 additions and 357 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,8 @@ jobs:
- name: Check version number has been properly updated
run: .github/is-version-number-acceptable.sh
Test:
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
continue-on-error: true
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- name: Checkout repo
uses: actions/checkout@v4
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,10 @@ jobs:
message: Update PolicyEngine US
github_token: ${{ secrets.POLICYENGINE_GITHUB }}
Test:
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
if: |
(github.repository == 'PolicyEngine/policyengine-us')
&& (github.event.head_commit.message == 'Update PolicyEngine US')
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- name: Checkout repo
uses: actions/checkout@v4
Expand Down
7 changes: 7 additions & 0 deletions changelog_entry.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
- bump: minor
changes:
added:
- Use adjusted gross income in withheld state income tax.
- Separate takes_up_snap_if_eligible variable from snap variable.
removed:
- Windows test runner.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
period: 2022
absolute_error_margin: 0.01
input:
irs_employment_income: 10_000
adjusted_gross_income_person: 10_000
filing_status: JOINT
state_code: AL
output:
Expand All @@ -12,7 +12,7 @@
period: 2022
absolute_error_margin: 0.01
input:
irs_employment_income: 10_000
adjusted_gross_income_person: 10_000
filing_status: SURVIVING_SPOUSE
state_code: AL
output:
Expand All @@ -22,7 +22,7 @@
period: 2022
absolute_error_margin: 0.01
input:
irs_employment_income: 2_900
adjusted_gross_income_person: 2_900
filing_status: SURVIVING_SPOUSE
state_code: AL
output:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
period: 2022
absolute_error_margin: 0.01
input:
irs_employment_income: 15_000
adjusted_gross_income_person: 15_000
filing_status: JOINT
state_code: AR
output:
Expand All @@ -12,7 +12,7 @@
period: 2022
absolute_error_margin: 0.01
input:
irs_employment_income: 15_000
adjusted_gross_income_person: 15_000
filing_status: SURVIVING_SPOUSE
state_code: AR
output:
Expand All @@ -22,7 +22,7 @@
period: 2022
absolute_error_margin: 0.01
input:
irs_employment_income: 5_000
adjusted_gross_income_person: 5_000
filing_status: SURVIVING_SPOUSE
state_code: AR
output:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
period: 2022
absolute_error_margin: 0.01
input:
irs_employment_income: 15_000
adjusted_gross_income_person: 15_000
filing_status: JOINT
state_code: AZ
output:
Expand All @@ -12,7 +12,7 @@
period: 2022
absolute_error_margin: 0.01
input:
irs_employment_income: 15_000
adjusted_gross_income_person: 15_000
filing_status: SURVIVING_SPOUSE
state_code: AZ
output:
Expand All @@ -22,7 +22,7 @@
period: 2022
absolute_error_margin: 0.01
input:
irs_employment_income: 12_900
adjusted_gross_income_person: 12_900
filing_status: SURVIVING_SPOUSE
state_code: AZ
output:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
period: 2022
absolute_error_margin: 0.01
input:
irs_employment_income: 6_000
adjusted_gross_income_person: 6_000
filing_status: JOINT
state_code: CA
output:
Expand All @@ -12,7 +12,7 @@
period: 2022
absolute_error_margin: 0.01
input:
irs_employment_income: 6_000
adjusted_gross_income_person: 6_000
filing_status: SURVIVING_SPOUSE
state_code: CA
output:
Expand All @@ -22,7 +22,7 @@
period: 2022
absolute_error_margin: 0.01
input:
irs_employment_income: 5_000
adjusted_gross_income_person: 5_000
filing_status: SURVIVING_SPOUSE
state_code: CA
output:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
period: 2022
absolute_error_margin: 0.01
input:
irs_employment_income: 15_000
adjusted_gross_income_person: 15_000
filing_status: JOINT
state_code: CO
output:
Expand All @@ -12,7 +12,7 @@
period: 2022
absolute_error_margin: 0.01
input:
irs_employment_income: 15_000
adjusted_gross_income_person: 15_000
filing_status: SURVIVING_SPOUSE
state_code: CO
output:
Expand All @@ -22,7 +22,7 @@
period: 2022
absolute_error_margin: 0.01
input:
irs_employment_income: 12_000
adjusted_gross_income_person: 12_000
filing_status: SURVIVING_SPOUSE
state_code: CO
output:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
period: 2022
absolute_error_margin: 0.01
input:
irs_employment_income: 17_000
adjusted_gross_income_person: 17_000
filing_status: JOINT
state_code: CT
output:
Expand All @@ -12,7 +12,7 @@
period: 2022
absolute_error_margin: 0.01
input:
irs_employment_income: 17_000
adjusted_gross_income_person: 17_000
filing_status: SURVIVING_SPOUSE
state_code: CT
output:
Expand All @@ -22,7 +22,7 @@
period: 2022
absolute_error_margin: 0.01
input:
irs_employment_income: 14_000
adjusted_gross_income_person: 14_000
filing_status: SURVIVING_SPOUSE
state_code: CT
output:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
period: 2022
absolute_error_margin: 0.01
input:
irs_employment_income: 15_000
adjusted_gross_income_person: 15_000
filing_status: JOINT
state_code: DC
output:
Expand All @@ -12,7 +12,7 @@
period: 2022
absolute_error_margin: 0.01
input:
irs_employment_income: 15_000
adjusted_gross_income_person: 15_000
filing_status: SURVIVING_SPOUSE
state_code: DC
output:
Expand All @@ -22,7 +22,7 @@
period: 2022
absolute_error_margin: 0.01
input:
irs_employment_income: 12_000
adjusted_gross_income_person: 12_000
filing_status: SURVIVING_SPOUSE
state_code: DC
output:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
period: 2022
absolute_error_margin: 0.01
input:
irs_employment_income: 15_000
adjusted_gross_income_person: 15_000
filing_status: JOINT
state_code: DE
output:
Expand All @@ -12,7 +12,7 @@
period: 2022
absolute_error_margin: 0.01
input:
irs_employment_income: 15_000
adjusted_gross_income_person: 15_000
filing_status: SURVIVING_SPOUSE
state_code: DE
output:
Expand All @@ -22,7 +22,7 @@
period: 2022
absolute_error_margin: 0.01
input:
irs_employment_income: 5_000
adjusted_gross_income_person: 5_000
filing_status: SURVIVING_SPOUSE
state_code: DE
output:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
period: 2022
absolute_error_margin: 0.01
input:
irs_employment_income: 7_000
adjusted_gross_income_person: 7_000
filing_status: JOINT
state_code: GA
output:
Expand All @@ -12,7 +12,7 @@
period: 2022
absolute_error_margin: 0.01
input:
irs_employment_income: 7_000
adjusted_gross_income_person: 7_000
filing_status: SURVIVING_SPOUSE
state_code: GA
output:
Expand All @@ -22,7 +22,7 @@
period: 2022
absolute_error_margin: 0.01
input:
irs_employment_income: 5_000
adjusted_gross_income_person: 5_000
filing_status: SURVIVING_SPOUSE
state_code: GA
output:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
period: 2022
absolute_error_margin: 0.01
input:
irs_employment_income: 5_000
adjusted_gross_income_person: 5_000
filing_status: JOINT
state_code: HI
output:
Expand All @@ -12,7 +12,7 @@
period: 2022
absolute_error_margin: 0.01
input:
irs_employment_income: 5_000
adjusted_gross_income_person: 5_000
filing_status: SURVIVING_SPOUSE
state_code: HI
output:
Expand All @@ -22,7 +22,7 @@
period: 2022
absolute_error_margin: 0.01
input:
irs_employment_income: 2_000
adjusted_gross_income_person: 2_000
filing_status: SURVIVING_SPOUSE
state_code: HI
output:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
period: 2022
absolute_error_margin: 0.01
input:
irs_employment_income: 5_000
adjusted_gross_income_person: 5_000
filing_status: JOINT
state_code: IA
output:
Expand All @@ -12,7 +12,7 @@
period: 2022
absolute_error_margin: 0.01
input:
irs_employment_income: 5_000
adjusted_gross_income_person: 5_000
filing_status: SURVIVING_SPOUSE
state_code: IA
output:
Expand All @@ -22,7 +22,7 @@
period: 2022
absolute_error_margin: 0.01
input:
irs_employment_income: 2_000
adjusted_gross_income_person: 2_000
filing_status: SURVIVING_SPOUSE
state_code: IA
output:
Expand All @@ -32,7 +32,7 @@
period: 2023
absolute_error_margin: 0.01
input:
irs_employment_income: 10_000
adjusted_gross_income_person: 10_000
filing_status: JOINT
state_code: IA
output:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
period: 2022
absolute_error_margin: 0.01
input:
irs_employment_income: 20_000
adjusted_gross_income_person: 20_000
filing_status: JOINT
state_code: ID
output:
Expand All @@ -12,7 +12,7 @@
period: 2022
absolute_error_margin: 0.01
input:
irs_employment_income: 20_000
adjusted_gross_income_person: 20_000
filing_status: SURVIVING_SPOUSE
state_code: ID
output:
Expand All @@ -22,7 +22,7 @@
period: 2022
absolute_error_margin: 0.01
input:
irs_employment_income: 12_000
adjusted_gross_income_person: 12_000
filing_status: SURVIVING_SPOUSE
state_code: ID
output:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
period: 2022
absolute_error_margin: 0.01
input:
irs_employment_income: 15_000
adjusted_gross_income_person: 15_000
filing_status: JOINT
state_code: IL
output:
Expand All @@ -12,7 +12,7 @@
period: 2022
absolute_error_margin: 0.01
input:
irs_employment_income: 15_000
adjusted_gross_income_person: 15_000
filing_status: SURVIVING_SPOUSE
state_code: IL
output:
Expand All @@ -22,7 +22,7 @@
period: 2022
absolute_error_margin: 0.01
input:
irs_employment_income: 2_000
adjusted_gross_income_person: 2_000
filing_status: SURVIVING_SPOUSE
state_code: IL
output:
Expand Down
Loading

0 comments on commit 75fece7

Please sign in to comment.