Skip to content

Use SPI allowance deduction overrides#385

Merged
MaxGhenis merged 1 commit intomainfrom
codex/spi-allowance-deduction-inputs
May 2, 2026
Merged

Use SPI allowance deduction overrides#385
MaxGhenis merged 1 commit intomainfrom
codex/spi-allowance-deduction-inputs

Conversation

@MaxGhenis
Copy link
Copy Markdown
Contributor

Summary

  • Move SPI trading/property allowance overrides from the removed pass-through allowance variables to the concrete deduction variables.
  • Keep SPI's current treatment that HMRC income appears already net of trading/property allowances.
  • Add a regression test that SPI emits trading_allowance_deduction and property_allowance_deduction, not the removed pass-through variable names.

Companion to PolicyEngine/policyengine-uk#1640.

Tests

  • uv run pytest policyengine_uk_data/tests/test_spi_allowance_deductions.py -q
  • uv run ruff check policyengine_uk_data/datasets/spi.py policyengine_uk_data/tests/test_spi_allowance_deductions.py

@MaxGhenis MaxGhenis merged commit fd28036 into main May 2, 2026
3 checks passed
@MaxGhenis MaxGhenis deleted the codex/spi-allowance-deduction-inputs branch May 2, 2026 11:58
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