Skip to content

Split partnership and S-corp income inputs#8614

Open
MaxGhenis wants to merge 2 commits into
mainfrom
codex/partnership-se-semantics
Open

Split partnership and S-corp income inputs#8614
MaxGhenis wants to merge 2 commits into
mainfrom
codex/partnership-se-semantics

Conversation

@MaxGhenis

Copy link
Copy Markdown
Contributor

Fixes #8613.

Summary

  • add partnership_income and s_corp_income as separate gross pass-through income leaves
  • make partnership_s_corp_income a formula aggregate of those leaves
  • rename partnership_se_income to partnership_self_employment_net_earnings for SECA/EITC allocation use
  • update focused SE tax, EITC, and aggregate tests

Tests

  • uv run policyengine-core test policyengine_us/tests/policy/baseline/gov/irs/self_employment/taxable_self_employment_income.yaml
  • uv run policyengine-core test policyengine_us/tests/policy/baseline/gov/irs/credits/earned_income/eitc_earned_income.yaml
  • uv run policyengine-core test policyengine_us/tests/policy/baseline/household/income/person/self_employment/partnership_s_corp_income.yaml
  • uv run policyengine-core test policyengine_us/tests/policy/baseline/gov/irs/integration/qbid.yaml
  • uv run policyengine-core test policyengine_us/tests/policy/baseline/gov/irs/income/taxable_income/adjusted_gross_income/above_the_line_deductions/loss_ald.yaml
  • uv run ruff check policyengine_us/data/economic_assumptions.py policyengine_us/variables/household/income/person/self_employment/partnership_self_employment_net_earnings.py policyengine_us/variables/household/income/person/self_employment/partnership_income.py policyengine_us/variables/household/income/person/self_employment/s_corp_income.py policyengine_us/variables/household/income/person/self_employment/partnership_s_corp_income.py policyengine_us/variables/gov/irs/tax/self_employment/taxable_self_employment_income.py policyengine_us/variables/gov/irs/credits/earned_income/eitc_earned_income.py

@codecov

codecov Bot commented Jun 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (bd1ae42) to head (03cb323).
⚠️ Report is 26 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##             main     #8614       +/-   ##
============================================
+ Coverage   77.77%   100.00%   +22.22%     
============================================
  Files           1         6        +5     
  Lines           9        66       +57     
============================================
+ Hits            7        66       +59     
+ Misses          2         0        -2     
Flag Coverage Δ
unittests 100.00% <100.00%> (+22.22%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

Split partnership and S-corp income from partnership self-employment earnings

1 participant