policyengine-us 1.392.0__py3-none-any.whl → 1.394.0__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.
Potentially problematic release.
This version of policyengine-us might be problematic. Click here for more details.
- policyengine_us/tests/policy/baseline/gov/states/ny/tax/income/credits/ny_ctc.yaml +2 -21
- policyengine_us/tests/policy/baseline/gov/states/ny/tax/income/credits/ny_ctc_pre_2024.yaml +99 -0
- policyengine_us/tests/run_selective_tests.py +13 -3
- policyengine_us/variables/gov/states/ny/tax/income/credits/ctc/ny_ctc_pre_2024.py +14 -2
- {policyengine_us-1.392.0.dist-info → policyengine_us-1.394.0.dist-info}/METADATA +1 -1
- {policyengine_us-1.392.0.dist-info → policyengine_us-1.394.0.dist-info}/RECORD +9 -8
- {policyengine_us-1.392.0.dist-info → policyengine_us-1.394.0.dist-info}/WHEEL +0 -0
- {policyengine_us-1.392.0.dist-info → policyengine_us-1.394.0.dist-info}/entry_points.txt +0 -0
- {policyengine_us-1.392.0.dist-info → policyengine_us-1.394.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -42,25 +42,6 @@
|
|
|
42
42
|
output:
|
|
43
43
|
ny_ctc: 100
|
|
44
44
|
|
|
45
|
-
- name: Parent of four-year old child with no income gets minimum credit, $100 per child
|
|
46
|
-
period: 2022
|
|
47
|
-
input:
|
|
48
|
-
people:
|
|
49
|
-
parent:
|
|
50
|
-
age: 30
|
|
51
|
-
child:
|
|
52
|
-
age: 4
|
|
53
|
-
tax_units:
|
|
54
|
-
tax_unit:
|
|
55
|
-
members: [parent, child]
|
|
56
|
-
ctc: 0
|
|
57
|
-
households:
|
|
58
|
-
household:
|
|
59
|
-
members: [parent, child]
|
|
60
|
-
state_code: NY
|
|
61
|
-
output:
|
|
62
|
-
ny_ctc: 100
|
|
63
|
-
|
|
64
45
|
- name: Simpler calculation if not set to pre-TCJA.
|
|
65
46
|
period: 2022
|
|
66
47
|
input:
|
|
@@ -323,7 +304,7 @@
|
|
|
323
304
|
members: [parent, child]
|
|
324
305
|
state_code: NY
|
|
325
306
|
output:
|
|
326
|
-
ny_ctc: 100
|
|
307
|
+
ny_ctc: 100
|
|
327
308
|
|
|
328
309
|
- name: 2025 - Updated CTC disabled vs enabled comparison (young child)
|
|
329
310
|
period: 2025
|
|
@@ -344,4 +325,4 @@
|
|
|
344
325
|
members: [parent, child]
|
|
345
326
|
state_code: NY
|
|
346
327
|
output:
|
|
347
|
-
ny_ctc:
|
|
328
|
+
ny_ctc: 330
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
- name: Case 1, taxsim_record_225838_2024.yaml.
|
|
2
|
+
absolute_error_margin: 0.2
|
|
3
|
+
period: 2024
|
|
4
|
+
input:
|
|
5
|
+
people:
|
|
6
|
+
person1:
|
|
7
|
+
age: 40
|
|
8
|
+
employment_income: 0.0
|
|
9
|
+
taxable_interest_income: 24_248.203
|
|
10
|
+
is_tax_unit_head: true
|
|
11
|
+
person2:
|
|
12
|
+
age: 41
|
|
13
|
+
employment_income: 0.0
|
|
14
|
+
taxable_interest_income: 24_248.203
|
|
15
|
+
is_tax_unit_spouse: true
|
|
16
|
+
person3:
|
|
17
|
+
age: 10
|
|
18
|
+
employment_income: 0
|
|
19
|
+
is_tax_unit_dependent: true
|
|
20
|
+
is_tax_unit_head: false
|
|
21
|
+
is_tax_unit_spouse: false
|
|
22
|
+
tax_units:
|
|
23
|
+
tax_unit:
|
|
24
|
+
members: [person1, person2, person3]
|
|
25
|
+
premium_tax_credit: 0
|
|
26
|
+
local_income_tax: 0
|
|
27
|
+
state_sales_tax: 0
|
|
28
|
+
spm_units:
|
|
29
|
+
spm_unit:
|
|
30
|
+
members: [person1, person2, person3]
|
|
31
|
+
snap: 0
|
|
32
|
+
tanf: 0
|
|
33
|
+
households:
|
|
34
|
+
household:
|
|
35
|
+
members: [person1, person2, person3]
|
|
36
|
+
state_fips: 36
|
|
37
|
+
output:
|
|
38
|
+
ny_ctc: 330
|
|
39
|
+
ny_ctc_pre_2024: 330
|
|
40
|
+
# ny_ctc: 0
|
|
41
|
+
|
|
42
|
+
- name: Case 2, parent of four-year old child with no income gets minimum credit, $100 per child.
|
|
43
|
+
period: 2022
|
|
44
|
+
input:
|
|
45
|
+
people:
|
|
46
|
+
parent:
|
|
47
|
+
age: 30
|
|
48
|
+
child:
|
|
49
|
+
age: 4
|
|
50
|
+
tax_units:
|
|
51
|
+
tax_unit:
|
|
52
|
+
members: [parent, child]
|
|
53
|
+
households:
|
|
54
|
+
household:
|
|
55
|
+
members: [parent, child]
|
|
56
|
+
state_code: NY
|
|
57
|
+
output:
|
|
58
|
+
ny_ctc: 100
|
|
59
|
+
ny_ctc_pre_2024: 100
|
|
60
|
+
|
|
61
|
+
- name: Case 3, parent of four-year old child with some earned income.
|
|
62
|
+
period: 2022
|
|
63
|
+
input:
|
|
64
|
+
people:
|
|
65
|
+
parent:
|
|
66
|
+
age: 30
|
|
67
|
+
employment_income: 25_000
|
|
68
|
+
child:
|
|
69
|
+
age: 4
|
|
70
|
+
tax_units:
|
|
71
|
+
tax_unit:
|
|
72
|
+
members: [parent, child]
|
|
73
|
+
households:
|
|
74
|
+
household:
|
|
75
|
+
members: [parent, child]
|
|
76
|
+
state_code: NY
|
|
77
|
+
output:
|
|
78
|
+
ny_ctc: 330
|
|
79
|
+
ny_ctc_pre_2024: 330
|
|
80
|
+
|
|
81
|
+
- name: Case 4, parent of four-year old child with some earned income.
|
|
82
|
+
period: 2022
|
|
83
|
+
input:
|
|
84
|
+
people:
|
|
85
|
+
parent:
|
|
86
|
+
age: 30
|
|
87
|
+
taxable_interest_income: 50_000
|
|
88
|
+
child:
|
|
89
|
+
age: 4
|
|
90
|
+
tax_units:
|
|
91
|
+
tax_unit:
|
|
92
|
+
members: [parent, child]
|
|
93
|
+
households:
|
|
94
|
+
household:
|
|
95
|
+
members: [parent, child]
|
|
96
|
+
state_code: NY
|
|
97
|
+
output:
|
|
98
|
+
ny_ctc: 330
|
|
99
|
+
ny_ctc_pre_2024: 330
|
|
@@ -20,9 +20,9 @@ class SelectiveTestRunner:
|
|
|
20
20
|
|
|
21
21
|
# Define regex patterns for matching files to tests
|
|
22
22
|
self.test_patterns = [
|
|
23
|
-
# Rule 1: Match gov folders (excluding states) to their test directories
|
|
23
|
+
# Rule 1: Match gov folders (excluding states and contrib) to their test directories
|
|
24
24
|
{
|
|
25
|
-
"file_pattern": r"policyengine_us/(parameters|variables)/gov/(?!states/)([^/]+)",
|
|
25
|
+
"file_pattern": r"policyengine_us/(parameters|variables)/gov/(?!states/|contrib/)([^/]+)",
|
|
26
26
|
"test_pattern": r"policyengine_us/tests/policy/baseline/gov/\2",
|
|
27
27
|
},
|
|
28
28
|
# Rule 2: Match state-specific changes to state tests
|
|
@@ -35,7 +35,12 @@ class SelectiveTestRunner:
|
|
|
35
35
|
"file_pattern": r"policyengine_us/(parameters|variables)/gov/local/([^/]+)",
|
|
36
36
|
"test_pattern": r"policyengine_us/tests/policy/baseline/gov/local/\2",
|
|
37
37
|
},
|
|
38
|
-
# Match reforms to
|
|
38
|
+
# Match reforms in specific organization folders to their contrib test folders
|
|
39
|
+
{
|
|
40
|
+
"file_pattern": r"policyengine_us/reforms/([^/]+)/",
|
|
41
|
+
"test_pattern": r"policyengine_us/tests/policy/contrib/\1",
|
|
42
|
+
},
|
|
43
|
+
# Match general reforms to reform tests
|
|
39
44
|
{
|
|
40
45
|
"file_pattern": r"policyengine_us/reforms/",
|
|
41
46
|
"test_pattern": r"policyengine_us/tests/policy/reform",
|
|
@@ -45,6 +50,11 @@ class SelectiveTestRunner:
|
|
|
45
50
|
"file_pattern": r"policyengine_us/parameters/contrib/",
|
|
46
51
|
"test_pattern": r"policyengine_us/tests/policy/contrib",
|
|
47
52
|
},
|
|
53
|
+
# Match gov/contrib parameters to their specific contrib subfolder tests
|
|
54
|
+
{
|
|
55
|
+
"file_pattern": r"policyengine_us/parameters/gov/contrib/([^/]+)/",
|
|
56
|
+
"test_pattern": r"policyengine_us/tests/policy/contrib/\1",
|
|
57
|
+
},
|
|
48
58
|
# Match household variables to household tests
|
|
49
59
|
{
|
|
50
60
|
"file_pattern": r"policyengine_us/variables/household/",
|
|
@@ -55,9 +55,21 @@ class ny_ctc_pre_2024(Variable):
|
|
|
55
55
|
period,
|
|
56
56
|
maximum_ctc * meets_ny_minimum_age,
|
|
57
57
|
)
|
|
58
|
+
# Get maximum federal CTC from pre-TCJA rules
|
|
58
59
|
max_federal_ctc = pre_tcja_ctc.tax_unit("ctc", period)
|
|
59
|
-
|
|
60
|
-
|
|
60
|
+
|
|
61
|
+
# Limit by actual tax liability (for non-refundable portion)
|
|
62
|
+
limiting_tax = pre_tcja_ctc.tax_unit(
|
|
63
|
+
"ctc_limiting_tax_liability", period
|
|
64
|
+
)
|
|
65
|
+
non_refundable_ctc = min_(max_federal_ctc, limiting_tax)
|
|
66
|
+
|
|
67
|
+
# Get refundable portion (requires earned income)
|
|
68
|
+
refundable_ctc = pre_tcja_ctc.tax_unit("refundable_ctc", period)
|
|
69
|
+
|
|
70
|
+
# Total federal CTC they can actually claim
|
|
71
|
+
federal_ctc = non_refundable_ctc + refundable_ctc
|
|
72
|
+
|
|
61
73
|
qualifies_for_federal_ctc = pre_tcja_ctc.person(
|
|
62
74
|
"ctc_qualifying_child", period
|
|
63
75
|
)
|
|
@@ -3194,7 +3194,7 @@ policyengine_us/reforms/tax_exempt/__init__.py,sha256=v3EbtUk6a2jsi9MrOlyb8ckzPy
|
|
|
3194
3194
|
policyengine_us/reforms/tax_exempt/tax_exempt_reform.py,sha256=bkW91XMJ-jd23nhq4-PfWJv0YW2whVn98cQikbq6-Z8,2427
|
|
3195
3195
|
policyengine_us/reforms/treasury/__init__.py,sha256=406jIbu32B57tUKhVLflWxlXf3S4SWjclVqlEtMeMwg,92
|
|
3196
3196
|
policyengine_us/reforms/treasury/repeal_dependent_exemptions.py,sha256=-xyMCtUK_dIBn2aAmhPW8pJEZjxcgOZzWKEUSI3w5e8,1354
|
|
3197
|
-
policyengine_us/tests/run_selective_tests.py,sha256=
|
|
3197
|
+
policyengine_us/tests/run_selective_tests.py,sha256=xQiFaJH3z7PCh9IHXyUU9zC2dTT9K75XlFyjCeP_OBo,23139
|
|
3198
3198
|
policyengine_us/tests/test_batched.py,sha256=K1LN3IIbWIioXWpFXZ6Hlch-BeglV3QPc1zxAbUeP-M,11491
|
|
3199
3199
|
policyengine_us/tests/code_health/parameters.py,sha256=e9VKC8dmmB_dTafOO90WJuVu-PAogoLAaa5QZd2rY-s,1126
|
|
3200
3200
|
policyengine_us/tests/code_health/variable_names.py,sha256=hY4ucqPwBD7v_fvnBpzexJDf0yCGpF4Sueff4z4rQ24,554
|
|
@@ -4714,11 +4714,12 @@ policyengine_us/tests/policy/baseline/gov/states/ny/tax/income/credits/ny_additi
|
|
|
4714
4714
|
policyengine_us/tests/policy/baseline/gov/states/ny/tax/income/credits/ny_cdcc.yaml,sha256=nGqCVFv2B3Z_kbiicp7ZvcqQtAHWRgZl8tVI0MgTaO4,232
|
|
4715
4715
|
policyengine_us/tests/policy/baseline/gov/states/ny/tax/income/credits/ny_college_tuition_credit.yaml,sha256=i_63Mbt-He8gEOABzGRW_wI3xiIMdjCvmA16egzafGc,1062
|
|
4716
4716
|
policyengine_us/tests/policy/baseline/gov/states/ny/tax/income/credits/ny_college_tuition_credit_eligible.yaml,sha256=uDLlmuyIBgqncloWTaA8-MqiBAEvg-FIB2VIpQFtrc8,492
|
|
4717
|
-
policyengine_us/tests/policy/baseline/gov/states/ny/tax/income/credits/ny_ctc.yaml,sha256=
|
|
4717
|
+
policyengine_us/tests/policy/baseline/gov/states/ny/tax/income/credits/ny_ctc.yaml,sha256=t0srnL3ZIOkPR1hp0aox4MP47RDOeCbEYES8wQK2W1I,7230
|
|
4718
4718
|
policyengine_us/tests/policy/baseline/gov/states/ny/tax/income/credits/ny_ctc_post_2024.yaml,sha256=diI9wDcCapxkaw9AdMFpMnO8DS001140ql2H0n4KmiI,5480
|
|
4719
4719
|
policyengine_us/tests/policy/baseline/gov/states/ny/tax/income/credits/ny_ctc_post_2024_base.yaml,sha256=Bwwz0g5pAK-EiCRB3IXvNXpVUs_JR0_-SPPc7fPC_mE,6306
|
|
4720
4720
|
policyengine_us/tests/policy/baseline/gov/states/ny/tax/income/credits/ny_ctc_post_2024_eligible.yaml,sha256=Zmx0alQOWrTcBw79J0fP1fa72cLtkVznjFtqkG07buI,5896
|
|
4721
4721
|
policyengine_us/tests/policy/baseline/gov/states/ny/tax/income/credits/ny_ctc_post_2024_phase_out.yaml,sha256=T3vUxrA-2nULoAb9P02dENvjFy2HU3HMWIy8K9PuKc8,10298
|
|
4722
|
+
policyengine_us/tests/policy/baseline/gov/states/ny/tax/income/credits/ny_ctc_pre_2024.yaml,sha256=5QpQ1G8Rxs1n7K5A6f6xulS3mqlGLS2K8h1cautR-EQ,2198
|
|
4722
4723
|
policyengine_us/tests/policy/baseline/gov/states/ny/tax/income/credits/ny_eitc.yaml,sha256=6mTA2MYFbkmU23CS3Q3yTsPzAX0-MmohN3XaKdXd5YA,593
|
|
4723
4724
|
policyengine_us/tests/policy/baseline/gov/states/ny/tax/income/credits/ny_geothermal_energy_systems_credit.yaml,sha256=d3x_aHhllH9OBA0T4mXe_BF89DRPpTs6mYmiX-u0lNI,576
|
|
4724
4725
|
policyengine_us/tests/policy/baseline/gov/states/ny/tax/income/credits/ny_household_credit.yaml,sha256=GAwN2KvBhN4AkD6MXl-cE3DghOWT5vTIcbrVWDo1O4Q,1796
|
|
@@ -7384,7 +7385,7 @@ policyengine_us/variables/gov/states/ny/tax/income/credits/ctc/ny_ctc_post_2024.
|
|
|
7384
7385
|
policyengine_us/variables/gov/states/ny/tax/income/credits/ctc/ny_ctc_post_2024_base.py,sha256=firvDXTyXDQvjDzEaMMi8vTiFQ8_L1Tk3o3hLYzMdWM,1037
|
|
7385
7386
|
policyengine_us/variables/gov/states/ny/tax/income/credits/ctc/ny_ctc_post_2024_eligible.py,sha256=8PP4Om-O5C3XUfSjFe5puZ7dORf0jVm0DXwDkt09E04,1223
|
|
7386
7387
|
policyengine_us/variables/gov/states/ny/tax/income/credits/ctc/ny_ctc_post_2024_phase_out.py,sha256=bFxYim4489rCULP1Wjo6hzFCCEo51T5AVI4du4vl2MQ,1533
|
|
7387
|
-
policyengine_us/variables/gov/states/ny/tax/income/credits/ctc/ny_ctc_pre_2024.py,sha256=
|
|
7388
|
+
policyengine_us/variables/gov/states/ny/tax/income/credits/ctc/ny_ctc_pre_2024.py,sha256=NQBL28lN4O8uOes-no6yiG6omwbI6GC3HSZ7ifAr9-8,3909
|
|
7388
7389
|
policyengine_us/variables/gov/states/ny/tax/income/credits/ctc/ny_ctc_pre_2024_eligible.py,sha256=ZS_8sFxPdFZ_rOHvZTwLv_VQh-N2iSBmABHrdBSYPjg,2269
|
|
7389
7390
|
policyengine_us/variables/gov/states/ny/tax/income/credits/solar_energy_systems/ny_qualified_solar_energy_systems_equipment_expenditures.py,sha256=PkPQD477kkTqtDyeg7SdevSg7abb04oMBJ5xHFHpspI,407
|
|
7390
7391
|
policyengine_us/variables/gov/states/ny/tax/income/credits/solar_energy_systems/ny_solar_energy_systems_equipment_credit.py,sha256=L8StSE44y0qJfowTiE2kjkFV1HipBwOdjfv2W7tlKfE,768
|
|
@@ -8388,8 +8389,8 @@ policyengine_us/variables/input/farm_income.py,sha256=BEKxYmHNNnWJAAvULl5qZJigy5
|
|
|
8388
8389
|
policyengine_us/variables/input/geography.py,sha256=Ux0ueAf0rhZaflyEqz81UuXP3xKCKBDvoO3CrKhiQEc,5421
|
|
8389
8390
|
policyengine_us/variables/input/self_employment_income.py,sha256=PwsGz8R4lRikKWUYOhsC0qosNNLXq4f5SQmfw4S3mk8,511
|
|
8390
8391
|
policyengine_us/variables/input/self_employment_income_before_lsr.py,sha256=E8fcX9Nlyqz8dziHhQv_euutdmoIwFMMWePUwbbwv_w,379
|
|
8391
|
-
policyengine_us-1.
|
|
8392
|
-
policyengine_us-1.
|
|
8393
|
-
policyengine_us-1.
|
|
8394
|
-
policyengine_us-1.
|
|
8395
|
-
policyengine_us-1.
|
|
8392
|
+
policyengine_us-1.394.0.dist-info/METADATA,sha256=EVZPdln7Ib03hUUyGkR58sMTx_HICIMORMTlkvFK9Hk,1649
|
|
8393
|
+
policyengine_us-1.394.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
8394
|
+
policyengine_us-1.394.0.dist-info/entry_points.txt,sha256=MLaqNyNTbReALyKNkde85VkuFFpdPWAcy8VRG1mjczc,57
|
|
8395
|
+
policyengine_us-1.394.0.dist-info/licenses/LICENSE,sha256=2N5ReRelkdqkR9a-KP-y-shmcD5P62XoYiG-miLTAzo,34519
|
|
8396
|
+
policyengine_us-1.394.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|