Skip to content

Conversation

@MaxGhenis
Copy link
Contributor

Summary

  • Update Black target version from py311 to py313 to match project requirements (Python 3.13)
  • Update Makefile commands to consistently use uv run for all Python execution
  • Ensures adherence to development guidelines in CLAUDE.md

Changes

  1. pyproject.toml: Updated Black target-version from py311 to py313
  2. Makefile: Updated all Python commands to use uv run prefix:
    • format: uv run black . -l 79
    • test: uv run pytest .
    • download, upload, data: Use uv run python
    • build: Use uv run python -m build
    • documentation: Use uv pip install and uv run python

Test plan

  • Ran make format successfully - all 58 files properly formatted
  • Ran basic import test with uv run pytest - passes
  • Verified changes align with CLAUDE.md guidelines

🤖 Generated with Claude Code

nikhilwoodruff and others added 25 commits October 1, 2025 11:26
birth_year should be calculated from age and period in the model,
not stored as static data in the dataset. This allows birth_year to
properly update in multi-year projections.

With static birth_year in the dataset:
- 2026: birth_year stays 2006-2023 (based on 2023 survey)
- 2029: birth_year stays 2006-2023 (incorrect)

By calculating birth_year = period.year - age:
- 2026: birth_year becomes 2009-2026 (correct for 2026)
- 2029: birth_year becomes 2012-2029 (correct for 2029)

This fix is required for PolicyEngine/policyengine-uk#1352 to work
correctly and ensure two-child limit cost projections increase over
time as expected.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Remove birth_year from FRS dataset generation
- Update Black target version from py311 to py313 to match project requirements
- Update Makefile commands to consistently use uv run for all Python execution
- Ensures adherence to development guidelines in CLAUDE.md

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@nikhilwoodruff nikhilwoodruff force-pushed the main branch 2 times, most recently from 371eeb6 to 26ccdd1 Compare October 20, 2025 14:04
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.

4 participants