policyengine-us 1.456.0__py3-none-any.whl → 1.456.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -420,7 +420,7 @@ def create_repeal_state_dependent_exemptions() -> Reform:
420
420
  income = tax_unit("ky_modified_agi", period)
421
421
  fpg = parameters(period).gov.hhs.fpg
422
422
  # This will be CONTIGUOUS_US for Kentucky.
423
- state_group = tax_unit.household("state_group", period)
423
+ state_group = tax_unit.household("state_group_str", period)
424
424
  p1 = fpg.first_person[state_group]
425
425
  padd = fpg.additional_person[state_group]
426
426
  family_size = tax_unit("head_spouse_count", period)
@@ -1,39 +1,39 @@
1
+ # Unit tests for ky_family_size_tax_credit_rate
2
+ # These tests verify that state_group is correctly derived from state_code
3
+ # (not explicitly set, which would mask bugs in the state_group derivation)
4
+
1
5
  - name: No income
2
6
  period: 2023
3
- input:
7
+ input:
4
8
  state_code: KY
5
9
  ky_modified_agi: 0
6
- state_group: CONTIGUOUS_US
7
10
  tax_unit_size: 1
8
11
  output:
9
12
  ky_family_size_tax_credit_rate: 1
10
13
 
11
14
  - name: One person with income at fpg
12
15
  period: 2022
13
- input:
16
+ input:
14
17
  state_code: KY
15
18
  ky_modified_agi: 13_590
16
- state_group: CONTIGUOUS_US
17
19
  tax_unit_size: 1
18
20
  output:
19
21
  ky_family_size_tax_credit_rate: 1
20
22
 
21
23
  - name: Seven person, capped at 4 # fpg = 13_590 + 3 * 4_720 = 27_750, 119%
22
24
  period: 2022
23
- input:
25
+ input:
24
26
  state_code: KY
25
27
  ky_modified_agi: 33_000
26
- state_group: CONTIGUOUS_US
27
28
  tax_unit_size: 7
28
29
  output:
29
30
  ky_family_size_tax_credit_rate: 0.5
30
31
 
31
32
  - name: Three people with income over fpg
32
33
  period: 2022
33
- input:
34
+ input:
34
35
  state_code: KY
35
36
  ky_modified_agi: 50_000
36
- state_group: CONTIGUOUS_US
37
37
  tax_unit_size: 3
38
38
  output:
39
39
  ky_family_size_tax_credit_rate: 0
@@ -1,8 +1,12 @@
1
+ # Unit tests for wv_low_income_family_tax_credit_fpg
2
+ # These tests verify that state_group is correctly derived from state_code
3
+ # (not explicitly set, which would mask bugs in the state_group derivation)
4
+
1
5
  - name: The federal poverty guidelines for family size of 4 is $27,750.
2
6
  period: 2022
3
7
  input:
8
+ state_code: WV
4
9
  tax_unit_size: 4
5
- state_group: CONTIGUOUS_US
6
10
  wv_low_income_family_tax_credit_eligible: true
7
11
  output:
8
12
  wv_low_income_family_tax_credit_fpg: 27_750
@@ -10,8 +14,8 @@
10
14
  - name: The federal poverty guidelines for family size of 2 is $18,310.
11
15
  period: 2022
12
16
  input:
17
+ state_code: WV
13
18
  tax_unit_size: 2
14
- state_group: CONTIGUOUS_US
15
19
  wv_low_income_family_tax_credit_eligible: true
16
20
  output:
17
21
  wv_low_income_family_tax_credit_fpg: 18_310
@@ -19,18 +23,18 @@
19
23
  - name: The federal poverty guidelines for family size of 8 is $46,630.
20
24
  period: 2022
21
25
  input:
26
+ state_code: WV
22
27
  tax_unit_size: 8
23
- state_group: CONTIGUOUS_US
24
28
  wv_low_income_family_tax_credit_eligible: true
25
29
  output:
26
- # 14_580 + 7 * 5_140
30
+ # 13_590 + 7 * 4_720 = 46_630
27
31
  wv_low_income_family_tax_credit_fpg: 46_630
28
32
 
29
- - name: The federal poverty guidelines for family size of 10 is $46,630.
33
+ - name: The federal poverty guidelines for family size of 10 is $46,630 (capped at 8).
30
34
  period: 2022
31
35
  input:
36
+ state_code: WV
32
37
  tax_unit_size: 10
33
- state_group: CONTIGUOUS_US
34
38
  wv_low_income_family_tax_credit_eligible: true
35
39
  output:
36
40
  wv_low_income_family_tax_credit_fpg: 46_630
@@ -63,7 +63,7 @@
63
63
  period: 2024
64
64
  input:
65
65
  gov.contrib.repeal_state_dependent_exemptions.in_effect: false
66
- people:
66
+ people:
67
67
  person1:
68
68
  age: 38
69
69
  person2:
@@ -79,3 +79,27 @@
79
79
  state_code: VT
80
80
  output:
81
81
  vt_personal_exemptions: 15_300
82
+
83
+ # Test for KY family size tax credit rate - verifies state_group_str is used correctly
84
+ # This test ensures state_group is derived from state_code, not set explicitly
85
+ - name: Kentucky family size tax credit with reform - state_group derived from state_code
86
+ period: 2024
87
+ reforms: policyengine_us.reforms.state_dependent_exemptions.repeal_state_dependent_exemptions.repeal_state_dependent_exemptions
88
+ input:
89
+ gov.contrib.repeal_state_dependent_exemptions.in_effect: true
90
+ people:
91
+ person1:
92
+ age: 38
93
+ employment_income: 20_000
94
+ tax_units:
95
+ tax_unit:
96
+ members: [person1]
97
+ households:
98
+ household:
99
+ members: [person1]
100
+ state_code: KY
101
+ output:
102
+ # With 20k income vs 15,060 FPG for 1 person in 2024, income/FPG ratio = 132.8%
103
+ # The rate scale: 130% -> 0.1, 133% -> 0
104
+ # Since 132.8% is between 130% and 133%, the rate is 0.1
105
+ ky_family_size_tax_credit_rate: 0.1
@@ -16,7 +16,7 @@ class ky_family_size_tax_credit_rate(Variable):
16
16
  income = tax_unit("ky_modified_agi", period)
17
17
  fpg = parameters(period).gov.hhs.fpg
18
18
  # This will be CONTIGUOUS_US for Kentucky.
19
- state_group = tax_unit.household("state_group", period)
19
+ state_group = tax_unit.household("state_group_str", period)
20
20
  p1 = fpg.first_person[state_group]
21
21
  padd = fpg.additional_person[state_group]
22
22
  family_size = tax_unit("tax_unit_size", period)
@@ -16,7 +16,7 @@ class wv_low_income_family_tax_credit_fpg(Variable):
16
16
 
17
17
  # max family size limit
18
18
  n = tax_unit("tax_unit_size", period)
19
- state_group = tax_unit.household("state_group", period)
19
+ state_group = tax_unit.household("state_group_str", period)
20
20
 
21
21
  p_fpg = parameters(period).gov.hhs.fpg
22
22
  p1 = p_fpg.first_person[state_group]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: policyengine-us
3
- Version: 1.456.0
3
+ Version: 1.456.2
4
4
  Summary: Add your description here.
5
5
  Author-email: PolicyEngine <hello@policyengine.org>
6
6
  License-File: LICENSE
@@ -3428,7 +3428,7 @@ policyengine_us/reforms/snap/abolish_snap_deductions.py,sha256=Ad4J4_qiCXa-ORIxW
3428
3428
  policyengine_us/reforms/snap/abolish_snap_net_income_test.py,sha256=KoWaDtPkYr5mLt-xcMT6UkmVcCo0UDRYaMVRfiCm9Rs,1166
3429
3429
  policyengine_us/reforms/state_dependent_exemptions/README.md,sha256=RinI1t-m6h2QlkvKU6GkXfqmy2IOg9PYYWySe_GDv8I,2201
3430
3430
  policyengine_us/reforms/state_dependent_exemptions/__init__.py,sha256=qF3SRSDntSWx6dHd1xKkz7zhiOL9zU9qNgHAzlk4OIU,104
3431
- policyengine_us/reforms/state_dependent_exemptions/repeal_state_dependent_exemptions.py,sha256=Asi9vxgvsx3_GKY3Lyee_hZexfB3TLCzd-3hSTosdv4,22610
3431
+ policyengine_us/reforms/state_dependent_exemptions/repeal_state_dependent_exemptions.py,sha256=gJVqwmZ-ENR341r2YBKJzkIGtJKCPl9dId02DLpIKb8,22614
3432
3432
  policyengine_us/reforms/states/dc/property_tax/__init__.py,sha256=yEfVK0QtATzjmj7WekqGXd0RIdNPDIW7Uy_t4jAFKSA,73
3433
3433
  policyengine_us/reforms/states/dc/property_tax/dc_property_tax_reform.py,sha256=SA2R0cqg7jR4c2f4M3dZHV1m_FkYD0q8jiO8XP9C40o,5097
3434
3434
  policyengine_us/reforms/states/mi/__init__.py,sha256=QA0f8Kz0mJKgquLh_pojuDlEnUvo3y99LY0FT7zgm-g,53
@@ -4510,7 +4510,7 @@ policyengine_us/tests/policy/baseline/gov/states/ky/tax/income/ky_taxable_income
4510
4510
  policyengine_us/tests/policy/baseline/gov/states/ky/tax/income/ky_withheld_income_tax.yaml,sha256=bcNzMoZzI9BThJWdvQh7iP0dsOx108ahSrV0COwTKv4,1470
4511
4511
  policyengine_us/tests/policy/baseline/gov/states/ky/tax/income/credits/dependent_care_credit/ky_cdcc.yaml,sha256=4OaJs9AsrVveMmivWlFdSeJQAohD77bNjK1C-LbEeOc,230
4512
4512
  policyengine_us/tests/policy/baseline/gov/states/ky/tax/income/credits/family_size_tax_credit/ky_family_size_tax_credit.yaml,sha256=Iv-0LamafDJ4UAkMdCTlWWb__rxsloaMZkWk0z3Nz0g,785
4513
- policyengine_us/tests/policy/baseline/gov/states/ky/tax/income/credits/family_size_tax_credit/ky_family_size_tax_credit_rate.yaml,sha256=YKjtUWPxhCQiVhbh1B_dvoyQZ95KGm_tlW_ploQRs-Y,862
4513
+ policyengine_us/tests/policy/baseline/gov/states/ky/tax/income/credits/family_size_tax_credit/ky_family_size_tax_credit_rate.yaml,sha256=VeBvjimFBsUjckqTm0nXtP4fS78RyteEw_qRbPAwRDE,934
4514
4514
  policyengine_us/tests/policy/baseline/gov/states/ky/tax/income/credits/family_size_tax_credit/ky_modified_agi.yaml,sha256=jCwj5TIbTUKT6I-Gz2a9v10411xR4AGYY55_pEZo_ms,414
4515
4515
  policyengine_us/tests/policy/baseline/gov/states/ky/tax/income/credits/personal/ky_aged_personal_tax_credits.yaml,sha256=qfqiPOXwkiHBWnHvUriqnh4bNlZDkSw_0imRc6Vw5Kk,776
4516
4516
  policyengine_us/tests/policy/baseline/gov/states/ky/tax/income/credits/personal/ky_blind_personal_tax_credits.yaml,sha256=Twvkftf9t4OXbfi7ZGxQGrWBj4xBnlScmaJ9TCm28ZI,765
@@ -5417,7 +5417,7 @@ policyengine_us/tests/policy/baseline/gov/states/wv/tax/income/credits/heptc/wv_
5417
5417
  policyengine_us/tests/policy/baseline/gov/states/wv/tax/income/credits/liftc/integration.yaml,sha256=NhNqbvKrf6rWlB0ab4UV9axFsWhLCtp2xLwotK_DOG4,1313
5418
5418
  policyengine_us/tests/policy/baseline/gov/states/wv/tax/income/credits/liftc/wv_low_income_family_tax_credit.yaml,sha256=Kwn-MVGL2KXFsrl1dBlHf3zOxMsmg8bs3_CSIiV5oj0,2853
5419
5419
  policyengine_us/tests/policy/baseline/gov/states/wv/tax/income/credits/liftc/wv_low_income_family_tax_credit_eligible.yaml,sha256=DVDMmSgYfr0R_Kd-GNkvtwgPLqJ1FMQV1umM6QQgVRk,316
5420
- policyengine_us/tests/policy/baseline/gov/states/wv/tax/income/credits/liftc/wv_low_income_family_tax_credit_fpg.yaml,sha256=q7FBrCZ1wr_aC158scoX2JVIuz8ZSWn66iHs4BtzqDY,1058
5420
+ policyengine_us/tests/policy/baseline/gov/states/wv/tax/income/credits/liftc/wv_low_income_family_tax_credit_fpg.yaml,sha256=7qD1p-oSN8QlM42mKUtzOS24QXLKeWkgVDy5uIXgx9s,1238
5421
5421
  policyengine_us/tests/policy/baseline/gov/states/wv/tax/income/credits/sctc/wv_sctc.yaml,sha256=duGJFodLoDDZs5ZgUuyIEz7PbX_XNbVTCqGLy7w1k8M,946
5422
5422
  policyengine_us/tests/policy/baseline/gov/states/wv/tax/income/credits/sctc/wv_sctc_eligible.yaml,sha256=wG7Vc3-jwAFZ3m0owrxAU0xfnbJNZ-QsqeCEIxPVTts,1306
5423
5423
  policyengine_us/tests/policy/baseline/gov/states/wv/tax/income/exemptions/wv_personal_exemption.yaml,sha256=CCFoIhQndkuYn6ovMlLVzKiJp6M4GXSgE8QioxNpw_k,589
@@ -5664,7 +5664,7 @@ policyengine_us/tests/policy/contrib/snap/abolish_snap_deductions.yaml,sha256=5p
5664
5664
  policyengine_us/tests/policy/contrib/snap/abolish_snap_net_income_test.yaml,sha256=8zy1seb0mfTruajlBK01Vl1vajlABDQak0P-lWmwG98,427
5665
5665
  policyengine_us/tests/policy/contrib/snap_ea/mid_year_snap_ea_reform.py,sha256=ABpm6JVBoziFM3hKvil1xLkWOiz60c9UmcTl8rz_40E,410
5666
5666
  policyengine_us/tests/policy/contrib/snap_ea/snap_ca_ea_reform.yaml,sha256=7ivYCiPdnT3XxVP7o-aJzer9gdM8Ot_f_zyFCZptBxc,540
5667
- policyengine_us/tests/policy/contrib/state_dependent_exemptions/repeal_state_dependent_exemptions.yaml,sha256=6CgLgOtzdJ7WUoqW-gLU9wG1rABNlsDVT9lEwuCuxzs,2031
5667
+ policyengine_us/tests/policy/contrib/state_dependent_exemptions/repeal_state_dependent_exemptions.yaml,sha256=k0mKtO3BYuUCJvq0MRMROoHzpv8L1WMiel0VrHPL8j0,2965
5668
5668
  policyengine_us/tests/policy/contrib/states/dc/property_tax/dc_property_tax_credit.yaml,sha256=GylamIRxoQ3IUrWIYqb-2Ix8X26QvQ2f_wqsfr3EEMo,5745
5669
5669
  policyengine_us/tests/policy/contrib/states/mi/mi_surtax.yaml,sha256=XQ2_X2XMihcuLNWMWfdAfeEglM-e19VY2pBnHCWYQeE,2541
5670
5670
  policyengine_us/tests/policy/contrib/states/mn/walz/mn_walz_hf1938.yaml,sha256=5T1QsbKqOf52Vjk8vv1ZruEo8RWR9pKXBqcc0Dazcds,2958
@@ -7217,7 +7217,7 @@ policyengine_us/variables/gov/states/ky/tax/income/credits/ky_non_refundable_cre
7217
7217
  policyengine_us/variables/gov/states/ky/tax/income/credits/ky_refundable_credits.py,sha256=-mJYQgTkbe9AGOF04E2XIq4eJG2wSzYG6Lnt7DbeSUw,242
7218
7218
  policyengine_us/variables/gov/states/ky/tax/income/credits/dependent_care_service/ky_cdcc.py,sha256=N4QzcQ4MHpu6toE-Hitid0Ugu_BO8ImUTATez8K1p2Q,673
7219
7219
  policyengine_us/variables/gov/states/ky/tax/income/credits/family_size_credit/ky_family_size_tax_credit.py,sha256=vldinrjhjG1xsnzRAZZBIgQ2VijnydnoxBKqAjKElmM,743
7220
- policyengine_us/variables/gov/states/ky/tax/income/credits/family_size_credit/ky_family_size_tax_credit_rate.py,sha256=jDOs4h0P-HMDjCL3uJAzVh9nz1exEWiP6EBAQvSLkGY,1124
7220
+ policyengine_us/variables/gov/states/ky/tax/income/credits/family_size_credit/ky_family_size_tax_credit_rate.py,sha256=AIBXZ6_nz6SD4drw4t-ufeWPAei1ACgbDZBd4Tmb3bM,1128
7221
7221
  policyengine_us/variables/gov/states/ky/tax/income/credits/family_size_credit/ky_modified_agi.py,sha256=NPzA9jN2YU1r7pvPkYqtoabFHlCQp94kG8JdkXllIzw,1104
7222
7222
  policyengine_us/variables/gov/states/ky/tax/income/credits/personal/ky_aged_personal_tax_credits.py,sha256=gezqpdyweSZyr_rZjTegGU_K-mTlp3VBh1YqGlGJ6sM,685
7223
7223
  policyengine_us/variables/gov/states/ky/tax/income/credits/personal/ky_blind_personal_tax_credits.py,sha256=Mw5FPiWsT4Nx7Z5L01qLUXJvv_3NFpyJHikUZjk409c,653
@@ -8399,7 +8399,7 @@ policyengine_us/variables/gov/states/wv/tax/income/credits/heptc/wv_homestead_ex
8399
8399
  policyengine_us/variables/gov/states/wv/tax/income/credits/liftc/wv_low_income_family_tax_credit.py,sha256=Wtie3IhT51OCdHivAOozZUsWCQS0Ubp2eEbVaUbFKoA,1756
8400
8400
  policyengine_us/variables/gov/states/wv/tax/income/credits/liftc/wv_low_income_family_tax_credit_agi.py,sha256=YQRWm64cZGYL-1DsJ0ugsnJYUDKi6LOS9XqAL6dNzug,523
8401
8401
  policyengine_us/variables/gov/states/wv/tax/income/credits/liftc/wv_low_income_family_tax_credit_eligible.py,sha256=mRWCEKyk8rfBehWJ3-v9R59rLn2fNtkuPA5gedjX6S8,521
8402
- policyengine_us/variables/gov/states/wv/tax/income/credits/liftc/wv_low_income_family_tax_credit_fpg.py,sha256=qzyfjQal41BITTlMJfmqTIlOSVQZtu0Wh36JDR6jTzM,886
8402
+ policyengine_us/variables/gov/states/wv/tax/income/credits/liftc/wv_low_income_family_tax_credit_fpg.py,sha256=ivxo8XUsMLk-C2I-Lz-RIE0iZCmx3XgVYu0UsE6_MO8,890
8403
8403
  policyengine_us/variables/gov/states/wv/tax/income/credits/sctc/wv_sctc.py,sha256=zorfnJrCreJ8b_gHOqdx-wk7Rz8DSTYiUnFxUhtL1qc,589
8404
8404
  policyengine_us/variables/gov/states/wv/tax/income/credits/sctc/wv_sctc_eligible.py,sha256=4JXDvLMOMhJn3qUxZn92ASHvHngyf_RMECdILSE2Mp8,1419
8405
8405
  policyengine_us/variables/gov/states/wv/tax/income/credits/sctc/wv_taxable_property_value.py,sha256=5KYA7hso-MmbB8UEiYmGP2PZsaqfv1LKZuwAvdwfAOE,397
@@ -9029,8 +9029,8 @@ policyengine_us/variables/input/farm_income.py,sha256=BEKxYmHNNnWJAAvULl5qZJigy5
9029
9029
  policyengine_us/variables/input/geography.py,sha256=Ux0ueAf0rhZaflyEqz81UuXP3xKCKBDvoO3CrKhiQEc,5421
9030
9030
  policyengine_us/variables/input/self_employment_income.py,sha256=PwsGz8R4lRikKWUYOhsC0qosNNLXq4f5SQmfw4S3mk8,511
9031
9031
  policyengine_us/variables/input/self_employment_income_before_lsr.py,sha256=E8fcX9Nlyqz8dziHhQv_euutdmoIwFMMWePUwbbwv_w,379
9032
- policyengine_us-1.456.0.dist-info/METADATA,sha256=1KENDYN0IzlCBMCni-O5UNvmq5tEQzjtlbRhqceYT0U,1649
9033
- policyengine_us-1.456.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
9034
- policyengine_us-1.456.0.dist-info/entry_points.txt,sha256=MLaqNyNTbReALyKNkde85VkuFFpdPWAcy8VRG1mjczc,57
9035
- policyengine_us-1.456.0.dist-info/licenses/LICENSE,sha256=2N5ReRelkdqkR9a-KP-y-shmcD5P62XoYiG-miLTAzo,34519
9036
- policyengine_us-1.456.0.dist-info/RECORD,,
9032
+ policyengine_us-1.456.2.dist-info/METADATA,sha256=rhv83dsfl6GmvjCoWtZR9ZZugoyiETuDybmRGS7-ecs,1649
9033
+ policyengine_us-1.456.2.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
9034
+ policyengine_us-1.456.2.dist-info/entry_points.txt,sha256=MLaqNyNTbReALyKNkde85VkuFFpdPWAcy8VRG1mjczc,57
9035
+ policyengine_us-1.456.2.dist-info/licenses/LICENSE,sha256=2N5ReRelkdqkR9a-KP-y-shmcD5P62XoYiG-miLTAzo,34519
9036
+ policyengine_us-1.456.2.dist-info/RECORD,,