Skip to content

Commit

Permalink
Black formatted files
Browse files Browse the repository at this point in the history
  • Loading branch information
rickecon committed Oct 2, 2024
1 parent 9e112f5 commit a07c887
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 11 deletions.
4 changes: 1 addition & 3 deletions fiscalsim_us/data/datasets/cps/enhanced_cps/enhanced_cps.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ class EnhancedCPS_2023(Dataset):
file_path = STORAGE_FOLDER / "enhanced_cps.h5"
data_format = Dataset.ARRAYS
time_period = "2023"
url = (
"release://policyengine/policyengine-us/enhanced-cps-2023/enhanced_cps.h5"
)
url = "release://policyengine/policyengine-us/enhanced-cps-2023/enhanced_cps.h5"

def generate(self):
from .puf_extended_cps import PUFExtendedCPS_2023
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ def formula(tax_unit, period, parameters):
0, federal_itemized_deduction - federal_standard_deduction
)
# line 4
salt = tax_unit(
"statelocal_sales_or_prior_inctax", period
)
salt = tax_unit("statelocal_sales_or_prior_inctax", period)
# line 5
real_estate_and_property_taxes = add(
tax_unit, period, ["real_estate_taxes"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ class sc_cdcc(Variable):
"""
South Carolina Child and Dependent Care Credit, line 11 on form SC1040
"""

value_type = float
entity = TaxUnit
label = "South Carolina CDCC"
Expand Down Expand Up @@ -56,7 +57,7 @@ def formula(tax_unit, period, parameters):
max_expense, p_sc.rate * tax_unit("cdcc", period)
)
sc_tot_cdcc_match = (
pre_2023 * sc_pre2023_tot_cdcc_match +
(not pre_2023) * sc_post2023_tot_cdcc_match
pre_2023 * sc_pre2023_tot_cdcc_match
+ (not pre_2023) * sc_post2023_tot_cdcc_match
)
return sc_tot_cdcc_match
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@ class sc_parentrefund_credit(Variable):
Parental refund credit, refundable credit, line 22d on SC1040 2023
Invidual Income Tax Return (see form I-361)
"""

value_type = float
entity = Person
label = "South Carolina Parent Refund Credit"
defined_for = "sc_tuition_credit_eligible"
unit = USD
definition_period = YEAR
reference = (
"https://dor.sc.gov/forms-site/Forms/I361_2023.pdf",
)
reference = ("https://dor.sc.gov/forms-site/Forms/I361_2023.pdf",)
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ class sc_tuition_credit(Variable):
Tuition tax credit, refundable credit, line 21 on SC1040 2023
Invidual Income Tax Return (see form I-319)
"""

value_type = float
entity = Person
label = "South Carolina Tuition Credit"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ class sc_tuition_credit_eligible(Variable):
Tuition tax credit, eligibility, refundable credit, line 21 on SC1040 2023
Invidual Income Tax Return (see form I-319)
"""

value_type = bool
entity = Person
label = "Eligible for the South Carolina Tuition Credit"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ class sc_income_tax(Variable):
South Carolina income tax liability, from line 30 or line 34 of form SC1040
2023 Individual Income Tax Return
"""

value_type = float
entity = TaxUnit
label = "South Carolina income tax"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ class sc_income_tax_before_refundable_credits(Variable):
South Carolina income tax before refundable credits, line 15 on form SC1040
2023 Individual Income Tax Return
"""

value_type = float
entity = TaxUnit
label = "South Carolina income tax before refundable credits"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ class sc_taxable_income(Variable):
"""
South Carolina income subject to tax, line 5 on SC1040 2023
"""

value_type = float
entity = TaxUnit
label = "South Carolina taxable income"
Expand Down

0 comments on commit a07c887

Please sign in to comment.