Skip to content

Add 2026 tax year and automation tool for future updates#1

Open
rahulaggarwal965 wants to merge 3 commits into
stacynoland:mainfrom
rahulaggarwal965:add-2026-tax-year
Open

Add 2026 tax year and automation tool for future updates#1
rahulaggarwal965 wants to merge 3 commits into
stacynoland:mainfrom
rahulaggarwal965:add-2026-tax-year

Conversation

@rahulaggarwal965

@rahulaggarwal965 rahulaggarwal965 commented Mar 12, 2026

Copy link
Copy Markdown

Summary

  • Add 2026 federal payroll withholding tables from IRS Publication 15-T for all 6 table combinations (single, married, HoH × standard, multiple jobs)
  • Add 2026 Social Security wage base ($184,500)
  • Fix 2025 married standard_schedule — 5 bracket max values had a missing trailing digit (e.g. 40949.940949.99)
  • Add tools/update_tax_year.py — automates adding future tax years by:
    • Downloading and parsing IRS Pub 15-T PDFs with pdfplumber
    • Fetching the SS wage base from the Federal Register API
    • Validating extracted data against structural invariants
    • Updating all source files programmatically
  • Add 50 tests covering parsing, validation, code generation, SS wage base fetching, and integration verification against 2024/2025/2026 PDFs

Usage (future tax years)

uv run --group tools python tools/update_tax_year.py

Test plan

- uv run --group test python -m pytest tests/ — all existing tests pass
- uv run --group tools --group test python -m pytest tests/tools/ -v — all 50 tool tests pass (downloads PDFs from IRS, fetches SS wage base from Federal Register)

Might be worth putting this in some sort of automation?

Update federal income withholding tables (single, married, HoH),
social security wage limit, and valid tax year configuration for 2026.
Five bracket max values in the 2025 married standard_schedule were
missing a trailing digit, e.g. 40949.9 instead of 40949.99. This
caused bracket boundaries to be off by $0.09.
Automates adding new tax year data by parsing IRS Publication 15-T
for withholding tables and fetching the SS wage base from the
Federal Register API. Includes 50 tests covering parsing, validation,
code generation, and integration against 2024/2025/2026 PDFs.
@rahulaggarwal965 rahulaggarwal965 changed the title Add 2026 tax year support Add 2026 tax year and automation tool for future updates Mar 12, 2026
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