Skip to content

Add explicit Tax-Free Childcare leave inputs#1601

Merged
MaxGhenis merged 1 commit intomainfrom
tfc-explicit-leave
Apr 15, 2026
Merged

Add explicit Tax-Free Childcare leave inputs#1601
MaxGhenis merged 1 commit intomainfrom
tfc-explicit-leave

Conversation

@MaxGhenis
Copy link
Copy Markdown
Collaborator

Summary

  • Add explicit Tax-Free Childcare inputs for adoption leave and shared parental leave.
  • Treat those explicit leave states as work in tax_free_childcare_treated_as_in_work.
  • Add direct treated-as-in-work tests and couple work-condition tests for both leave states.

Follow-up to #1600 / #1044 based on review feedback.

Tests

  • uv run --python 3.13 policyengine-core test policyengine_uk/tests/policy/baseline/gov/hmrc/tax_free_childcare -c policyengine_uk
  • uv run --python 3.13 ruff check policyengine_uk/variables/gov/hmrc/tax_free_childcare/conditions/tax_free_childcare_on_adoption_leave.py policyengine_uk/variables/gov/hmrc/tax_free_childcare/conditions/tax_free_childcare_on_shared_parental_leave.py policyengine_uk/variables/gov/hmrc/tax_free_childcare/conditions/tax_free_childcare_treated_as_in_work.py
  • uv run --python 3.13 ruff format --check policyengine_uk/variables/gov/hmrc/tax_free_childcare/conditions/tax_free_childcare_on_adoption_leave.py policyengine_uk/variables/gov/hmrc/tax_free_childcare/conditions/tax_free_childcare_on_shared_parental_leave.py policyengine_uk/variables/gov/hmrc/tax_free_childcare/conditions/tax_free_childcare_treated_as_in_work.py

@MaxGhenis MaxGhenis merged commit 39449d5 into main Apr 15, 2026
2 checks passed
@MaxGhenis MaxGhenis deleted the tfc-explicit-leave branch April 15, 2026 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant