Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
leehengpan committed Oct 29, 2024
1 parent 14f6d39 commit b8311f3
Show file tree
Hide file tree
Showing 19 changed files with 139 additions and 25 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from policyengine_us.model_api import *
from policyengine_us.reforms.utils import create_reform_if_active


def create_capital_gains_tax_increase() -> Reform:
class capital_gains_tax(Variable):
value_type = float
Expand Down Expand Up @@ -142,7 +143,12 @@ def create_capital_gains_tax_increase_reform(
parameters, period, bypass: bool = False
):
return create_reform_if_active(
parameters, period, "gov.contrib.biden.budget_2025.capital_gains", "active", create_capital_gains_tax_increase, bypass
parameters,
period,
"gov.contrib.biden.budget_2025.capital_gains",
"active",
create_capital_gains_tax_increase,
bypass,
)


Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from policyengine_us.model_api import *
from policyengine_us.reforms.utils import create_reform_if_active


def create_remove_head_of_household() -> Reform:
class reform(Reform):
def apply(self):
Expand All @@ -13,7 +14,12 @@ def create_remove_head_of_household_reform(
parameters, period, bypass: bool = False
):
return create_reform_if_active(
parameters, period, "gov.contrib.congress.romney.family_security_act", "remove_head_of_household", create_remove_head_of_household, bypass
parameters,
period,
"gov.contrib.congress.romney.family_security_act",
"remove_head_of_household",
create_remove_head_of_household,
bypass,
)


Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from policyengine_us.model_api import *
from policyengine_us.reforms.utils import create_reform_if_active


def create_family_security_act_2024_ctc() -> Reform:
class ctc_phase_in_rate(Variable):
value_type = float
Expand Down Expand Up @@ -142,7 +143,12 @@ def create_family_security_act_2024_ctc_reform(
parameters, period, bypass: bool = False
):
return create_reform_if_active(
parameters, period, "gov.contrib.congress.romney.family_security_act_2_0.ctc", "apply_ctc_structure", create_family_security_act_2024_ctc, bypass
parameters,
period,
"gov.contrib.congress.romney.family_security_act_2_0.ctc",
"apply_ctc_structure",
create_family_security_act_2024_ctc,
bypass,
)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,12 @@ def create_family_security_act_2024_eitc_reform(
parameters, period, bypass: bool = False
):
return create_reform_if_active(
parameters, period, "gov.contrib.congress.romney.family_security_act_2_0.eitc", "apply_eitc_structure", create_family_security_act_2024_eitc, bypass
parameters,
period,
"gov.contrib.congress.romney.family_security_act_2_0.eitc",
"apply_eitc_structure",
create_family_security_act_2024_eitc,
bypass,
)


Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from policyengine_us.model_api import *
from policyengine_us.reforms.utils import create_reform_if_active


def create_boost_middle_class_tax_credit() -> Reform:
class boost_middle_class_tax_credit(Variable):
value_type = float
Expand Down Expand Up @@ -144,7 +145,12 @@ def create_boost_middle_class_tax_credit_reform(
parameters, period, bypass: bool = False
):
return create_reform_if_active(
parameters, period, "gov.contrib.harris.lift.middle_class_tax_credit", "in_effect", create_boost_middle_class_tax_credit, bypass
parameters,
period,
"gov.contrib.harris.lift.middle_class_tax_credit",
"in_effect",
create_boost_middle_class_tax_credit,
bypass,
)


Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from policyengine_us.model_api import *
from policyengine_us.reforms.utils import create_reform_if_active


def create_end_child_poverty_act() -> Reform:
class ecpa_adult_dependent_credit(Variable):
value_type = float
Expand Down Expand Up @@ -177,7 +178,12 @@ def create_end_child_poverty_act_reform(
parameters, period, bypass: bool = False
):
return create_reform_if_active(
parameters, period, "gov.contrib.congress.tlaib.end_child_poverty_act", "in_effect", create_end_child_poverty_act, bypass
parameters,
period,
"gov.contrib.congress.tlaib.end_child_poverty_act",
"in_effect",
create_end_child_poverty_act,
bypass,
)


Expand Down
10 changes: 8 additions & 2 deletions policyengine_us/reforms/eitc/halve_joint_eitc_phase_out_rate.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from policyengine_us.model_api import *
from policyengine_us.reforms.utils import create_reform_if_active


def create_halve_joint_eitc_phase_out_rate() -> Reform:
class eitc_phase_out_rate(Variable):
value_type = float
Expand All @@ -27,9 +28,14 @@ def apply(self):

def create_halve_joint_eitc_phase_out_rate_reform(
parameters, period, bypass: bool = False
):
):
return create_reform_if_active(
parameters, period, "gov.contrib.joint_eitc", "in_effect", create_halve_joint_eitc_phase_out_rate, bypass
parameters,
period,
"gov.contrib.joint_eitc",
"in_effect",
create_halve_joint_eitc_phase_out_rate,
bypass,
)


Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from policyengine_us.model_api import *
from policyengine_us.reforms.utils import create_reform_if_active


def create_abolish_federal_income_tax() -> Reform:
class household_tax_before_refundable_credits(Variable):
value_type = float
Expand Down Expand Up @@ -51,7 +52,12 @@ def create_abolish_federal_income_tax_reform(
parameters, period, bypass: bool = False
):
return create_reform_if_active(
parameters, period, "gov.contrib.ubi_center.flat_tax", "abolish_federal_income_tax", create_abolish_federal_income_tax, bypass
parameters,
period,
"gov.contrib.ubi_center.flat_tax",
"abolish_federal_income_tax",
create_abolish_federal_income_tax,
bypass,
)


Expand Down
8 changes: 7 additions & 1 deletion policyengine_us/reforms/federal/abolish_payroll_tax.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from policyengine_us.model_api import *
from policyengine_us.reforms.utils import create_reform_if_active


def create_abolish_payroll_tax() -> Reform:
class household_tax_before_refundable_credits(Variable):
value_type = float
Expand Down Expand Up @@ -31,7 +32,12 @@ def create_abolish_payroll_tax_reform(
parameters, period, bypass: bool = False
):
return create_reform_if_active(
parameters, period, "gov.contrib.ubi_center.flat_tax", "abolish_payroll_tax", create_abolish_payroll_tax, bypass
parameters,
period,
"gov.contrib.ubi_center.flat_tax",
"abolish_payroll_tax",
create_abolish_payroll_tax,
bypass,
)


Expand Down
8 changes: 7 additions & 1 deletion policyengine_us/reforms/federal/reported_state_income_tax.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from policyengine_us.model_api import *
from policyengine_us.reforms.utils import create_reform_if_active


def create_reported_state_income_tax() -> Reform:
class household_tax_before_refundable_credits(Variable):
value_type = float
Expand Down Expand Up @@ -58,7 +59,12 @@ def create_reported_state_income_tax_reform(
parameters, period, bypass: bool = False
):
return create_reform_if_active(
parameters, period, "simulation", "reported_state_income_tax", create_reported_state_income_tax, bypass
parameters,
period,
"simulation",
"reported_state_income_tax",
create_reported_state_income_tax,
bypass,
)


Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from policyengine_us.model_api import *
from policyengine_us.reforms.utils import create_reform_if_active


def create_middle_class_tax_credit() -> Reform:
class middle_class_tax_credit(Variable):
value_type = float
Expand Down Expand Up @@ -58,7 +59,12 @@ def create_middle_class_tax_credit_reform(
parameters, period, bypass: bool = False
):
return create_reform_if_active(
parameters, period, "gov.contrib.harris.lift.middle_class_tax_credit", "in_effect", create_middle_class_tax_credit, bypass
parameters,
period,
"gov.contrib.harris.lift.middle_class_tax_credit",
"in_effect",
create_middle_class_tax_credit,
bypass,
)


Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from policyengine_us.model_api import *
from policyengine_us.reforms.utils import create_reform_if_active


def create_rent_relief_tax_credit() -> Reform:
class rent_relief_tax_credit(Variable):
value_type = float
Expand Down Expand Up @@ -78,7 +79,12 @@ def create_rent_relief_tax_credit_reform(
parameters, period, bypass: bool = False
):
return create_reform_if_active(
parameters, period, "gov.contrib.harris.rent_relief_act.rent_relief_credit", "in_effect", create_rent_relief_tax_credit, bypass
parameters,
period,
"gov.contrib.harris.rent_relief_act.rent_relief_credit",
"in_effect",
create_rent_relief_tax_credit,
bypass,
)


Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from policyengine_us.model_api import *
from policyengine_us.reforms.utils import create_reform_if_active


def create_adjust_income_limit_and_min_children_by_filing_status() -> Reform:
class nyc_school_tax_credit_eligible(Variable):
value_type = bool
Expand Down Expand Up @@ -52,7 +53,12 @@ def create_adjust_income_limit_by_filing_status_and_eligibility_by_children_refo
parameters, period, bypass: bool = False
):
return create_reform_if_active(
parameters, period, "gov.contrib.local.nyc.stc", "adjust_income_limit_by_filing_status_and_eligibility_by_children", create_adjust_income_limit_and_min_children_by_filing_status, bypass
parameters,
period,
"gov.contrib.local.nyc.stc",
"adjust_income_limit_by_filing_status_and_eligibility_by_children",
create_adjust_income_limit_and_min_children_by_filing_status,
bypass,
)


Expand Down
8 changes: 7 additions & 1 deletion policyengine_us/reforms/states/dc/dc_ctc.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from policyengine_us.model_api import *
from policyengine_us.reforms.utils import create_reform_if_active


def create_dc_ctc() -> Reform:
class dc_ctc(Variable):
value_type = float
Expand Down Expand Up @@ -57,7 +58,12 @@ def apply(self):

def create_dc_ctc_reform(parameters, period, bypass: bool = False):
return create_reform_if_active(
parameters, period, "gov.contrib.states.dc.ctc", "in_effect", create_dc_ctc, bypass
parameters,
period,
"gov.contrib.states.dc.ctc",
"in_effect",
create_dc_ctc,
bypass,
)


Expand Down
8 changes: 7 additions & 1 deletion policyengine_us/reforms/states/mn/walz/mn_walz_hf1938.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from policyengine_us.model_api import *
from policyengine_us.reforms.utils import create_reform_if_active


# Repealing Minnesota Bill HF1938 to pre 2023 rules
def create_mn_walz_hf1938_repeal() -> Reform:
class mn_refundable_credits(Variable):
Expand Down Expand Up @@ -209,7 +210,12 @@ def create_mn_walz_hf1938_repeal_reform(
parameters, period, bypass: bool = False
):
return create_reform_if_active(
parameters, period, "gov.contrib.states.mn.walz.hf1938", "repeal", create_mn_walz_hf1938_repeal, bypass
parameters,
period,
"gov.contrib.states.mn.walz.hf1938",
"repeal",
create_mn_walz_hf1938_repeal,
bypass,
)


Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from policyengine_us.model_api import *
from policyengine_us.reforms.utils import create_reform_if_active


def create_ny_working_families_tax_credit() -> Reform:
class ny_working_families_tax_credit(Variable):
value_type = float
Expand Down Expand Up @@ -527,7 +528,12 @@ def create_ny_working_families_tax_credit_reform(
parameters, period, bypass: bool = False
):
return create_reform_if_active(
parameters, period, "gov.contrib.states.ny.wftc", "in_effect", create_ny_working_families_tax_credit, bypass
parameters,
period,
"gov.contrib.states.ny.wftc",
"in_effect",
create_ny_working_families_tax_credit,
bypass,
)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,12 @@ def create_or_rebate_state_tax_exempt_reform(
parameters, period, bypass: bool = False
):
return create_reform_if_active(
parameters, period, "gov.contrib.states.or.rebate", "state_tax_exempt", create_or_rebate_state_tax_exempt, bypass
parameters,
period,
"gov.contrib.states.or.rebate",
"state_tax_exempt",
create_or_rebate_state_tax_exempt,
bypass,
)


Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from policyengine_us.model_api import *
from policyengine_us.reforms.utils import create_reform_if_active


def create_repeal_dependent_exemptions() -> Reform:
class exemptions_count(Variable):
value_type = int
Expand All @@ -25,7 +26,12 @@ def create_repeal_dependent_exemptions_reform(
parameters, period, bypass: bool = False
):
return create_reform_if_active(
parameters, period, "gov.contrib.treasury", "repeal_dependent_exemptions", create_repeal_dependent_exemptions, bypass
parameters,
period,
"gov.contrib.treasury",
"repeal_dependent_exemptions",
create_repeal_dependent_exemptions,
bypass,
)


Expand Down
Loading

0 comments on commit b8311f3

Please sign in to comment.