Skip to content

Commit 9952ed9

Browse files
committed
Format code with black using 79-char line length
1 parent 55ce6c3 commit 9952ed9

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

policyengine_uk/variables/gov/hmrc/tax_free_childcare/conditions/childcare_age_child_condition.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ class child_age_eligible(Variable):
55
value_type = bool
66
entity = Person
77
label = "Child age eligibility requirements"
8-
documentation = (
9-
"Whether this person meets the age and disability requirements for eligibility"
10-
)
8+
documentation = "Whether this person meets the age and disability requirements for eligibility"
119
definition_period = YEAR
1210

1311
def formula(person, period, parameters):
@@ -42,6 +40,8 @@ def formula(person, period, parameters):
4240
age_under_disability_limit = age < disability_age_limit
4341

4442
# Combine conditions
45-
eligible = basic_age_condition | (age_under_disability_limit & is_disabled)
43+
eligible = basic_age_condition | (
44+
age_under_disability_limit & is_disabled
45+
)
4646

4747
return eligible

policyengine_uk/variables/gov/hmrc/tax_free_childcare/conditions/childcare_income_condition.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,7 @@ def formula(person, period, parameters):
5959

6060
# Combine all conditions
6161
return (
62-
meets_adult_condition | meets_young_adult_condition | meets_youth_condition
62+
meets_adult_condition
63+
| meets_young_adult_condition
64+
| meets_youth_condition
6365
)

policyengine_uk/variables/gov/hmrc/tax_free_childcare/conditions/childcare_work_condition.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ class childcare_work_condition(Variable):
55
value_type = bool
66
entity = Person
77
label = "Work conditions for tax-free childcare"
8-
documentation = (
9-
"Whether the person/couple meets work requirements for tax-free childcare"
10-
)
8+
documentation = "Whether the person/couple meets work requirements for tax-free childcare"
119
definition_period = YEAR
1210

1311
def formula(person, period, parameters):

policyengine_uk/variables/gov/hmrc/tax_free_childcare/tax_free_childcare_benefits.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ def formula(benunit, period, parameters):
5151

5252
# Calculate the government contribution
5353
government_contribution = min(
54-
parents_contribution * p.contribution_rates.government_contribution_ratio,
54+
parents_contribution
55+
* p.contribution_rates.government_contribution_ratio,
5556
max_amount,
5657
)
5758

0 commit comments

Comments
 (0)