Skip to content

Commit

Permalink
Black formatted files
Browse files Browse the repository at this point in the history
  • Loading branch information
rickecon committed Apr 10, 2024
1 parent 8ce1050 commit 7eec03e
Show file tree
Hide file tree
Showing 12 changed files with 20 additions and 15 deletions.
1 change: 1 addition & 0 deletions fiscalsim_us/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
See https://openfisca.org/doc/key-concepts/tax_and_benefit_system.html
"""

from fiscalsim_us.system import (
CountryTaxBenefitSystem,
Simulation,
Expand Down
8 changes: 5 additions & 3 deletions fiscalsim_us/tools/taxcalc/generate_taxcalc_variable.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,11 @@ def formula(tax_unit, period, parameters):
dict(
entity=TaxUnit,
definition_period=YEAR,
label=variable.label + " (Tax-Calculator)"
if hasattr(variable, "label")
else name + "(Tax-Calculator)",
label=(
variable.label + " (Tax-Calculator)"
if hasattr(variable, "label")
else name + "(Tax-Calculator)"
),
unit=variable.unit if hasattr(variable, "unit") else None,
documentation=documentation,
value_type=variable.value_type,
Expand Down
8 changes: 5 additions & 3 deletions fiscalsim_us/tools/taxsim/generate_taxsim_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,11 @@ def calculate(self, input_data: dict) -> dict:
else:
input_csv = pd.DataFrame(
{
col: [value]
if not isinstance(value, collections.Sequence)
else value
col: (
[value]
if not isinstance(value, collections.Sequence)
else value
)
for col, value in input_data.items()
}
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class co_charitable_contribution_subtraction(Variable):
reference = (
"https://tax.colorado.gov/sites/tax/files/documents/DR0104AD_2022.pdf#page=1",
"https://tax.colorado.gov/sites/tax/files/documents/DR_104_Book_2022.pdf#page=12",
"https://casetext.com/regulation/colorado-administrative-code/department-200-department-of-revenue/division-201-taxation-division/rule-1-ccr-201-2-income-tax/rule-39-22-1044m-charitable-contribution-subtraction-for-taxpayers-claiming-the-federal-standard-deduction"
"https://casetext.com/regulation/colorado-administrative-code/department-200-department-of-revenue/division-201-taxation-division/rule-1-ccr-201-2-income-tax/rule-39-22-1044m-charitable-contribution-subtraction-for-taxpayers-claiming-the-federal-standard-deduction",
# C.R.S. 39-22-104(4)(m)(1)
)
defined_for = "co_charitable_contribution_subtraction_eligible"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class co_charitable_contribution_subtraction_eligible(Variable):
reference = (
"https://tax.colorado.gov/sites/tax/files/documents/DR0104AD_2022.pdf#page=1",
"https://tax.colorado.gov/sites/tax/files/documents/DR_104_Book_2022.pdf#page=12",
"https://casetext.com/regulation/colorado-administrative-code/department-200-department-of-revenue/division-201-taxation-division/rule-1-ccr-201-2-income-tax/rule-39-22-1044m-charitable-contribution-subtraction-for-taxpayers-claiming-the-federal-standard-deduction"
"https://casetext.com/regulation/colorado-administrative-code/department-200-department-of-revenue/division-201-taxation-division/rule-1-ccr-201-2-income-tax/rule-39-22-1044m-charitable-contribution-subtraction-for-taxpayers-claiming-the-federal-standard-deduction",
# C.R.S. 39-22-104(4)(m)(1)
)
defined_for = StateCode.CO
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class co_collegeinvest_subtraction(Variable):
reference = (
"https://tax.colorado.gov/sites/tax/files/documents/DR0104AD_2022.pdf#page=1",
"https://tax.colorado.gov/sites/tax/files/documents/DR_104_Book_2022.pdf#page=12",
"https://law.justia.com/codes/colorado/2022/title-39/article-22/part-1/section-39-22-104/"
"https://law.justia.com/codes/colorado/2022/title-39/article-22/part-1/section-39-22-104/",
# C.R.S. 39-22-104(4)(i)(II)(B)
)
defined_for = StateCode.CO
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class co_military_retirement_subtraction(Variable):
reference = (
"https://tax.colorado.gov/sites/tax/files/documents/DR0104AD_2022.pdf#page=1",
"https://tax.colorado.gov/sites/tax/files/documents/DR_104_Book_2022.pdf#page=12",
"https://law.justia.com/codes/colorado/2022/title-39/article-22/part-1/section-39-22-104/"
"https://law.justia.com/codes/colorado/2022/title-39/article-22/part-1/section-39-22-104/",
# C.R.S. 39-22-104(4)(y)(I)
)
definition_period = YEAR
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class co_pension_subtraction_indv(Variable):
reference = (
"https://tax.colorado.gov/sites/tax/files/documents/DR0104AD_2022.pdf#page=1",
"https://tax.colorado.gov/sites/tax/files/documents/DR_104_Book_2022.pdf#page=12",
"https://law.justia.com/codes/colorado/2022/title-39/article-22/part-1/section-39-22-104/"
"https://law.justia.com/codes/colorado/2022/title-39/article-22/part-1/section-39-22-104/",
# C.R.S. 39-22-104(4)(g)(III)
)
definition_period = YEAR
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class co_pension_subtraction_indv_eligible(Variable):
reference = (
"https://tax.colorado.gov/sites/tax/files/documents/DR0104AD_2022.pdf#page=1",
"https://tax.colorado.gov/sites/tax/files/documents/DR_104_Book_2022.pdf#page=12",
"https://law.justia.com/codes/colorado/2022/title-39/article-22/part-1/section-39-22-104/"
"https://law.justia.com/codes/colorado/2022/title-39/article-22/part-1/section-39-22-104/",
# C.R.S. 39-22-104(4)(g)(III)
)
definition_period = YEAR
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class co_social_security_subtraction_indv(Variable):
reference = (
"https://tax.colorado.gov/sites/tax/files/documents/DR0104AD_2022.pdf#page=1",
"https://tax.colorado.gov/sites/tax/files/documents/DR_104_Book_2022.pdf#page=12",
"https://law.justia.com/codes/colorado/2022/title-39/article-22/part-1/section-39-22-104/"
"https://law.justia.com/codes/colorado/2022/title-39/article-22/part-1/section-39-22-104/",
# C.R.S. 39-22-104(4)(g)(III)
)
definition_period = YEAR
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class co_social_security_subtraction_indv_eligible(Variable):
reference = (
"https://tax.colorado.gov/sites/tax/files/documents/DR0104AD_2022.pdf#page=1",
"https://tax.colorado.gov/sites/tax/files/documents/DR_104_Book_2022.pdf#page=12",
"https://law.justia.com/codes/colorado/2022/title-39/article-22/part-1/section-39-22-104/"
"https://law.justia.com/codes/colorado/2022/title-39/article-22/part-1/section-39-22-104/",
# C.R.S. 39-22-104(4)(g)(III)
)
definition_period = YEAR
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class sc_net_capital_gain_deduction(Variable):
defined_for = StateCode.SC
reference = (
"https://dor.sc.gov/forms-site/Forms/IITPacket_2021.pdf#page=15",
"https://www.scstatehouse.gov/code/t12c006.php"
"https://www.scstatehouse.gov/code/t12c006.php",
# South Carolina Code of Laws Section 12-6-1150 (A)
)

Expand Down

0 comments on commit 7eec03e

Please sign in to comment.