Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ['3.13', '3.14']
python-version: ['3.13', '3.14', '3.15']
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
Expand Down
2 changes: 1 addition & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ paper/ # the Quarto paper (front door)

## Code Style

- Python 3.10-3.14
- Python 3.11-3.15
- Black formatter, 79-char line length
- Ruff linting
- pytest for testing
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Once implementation begins (Phase 1), we will welcome contributions to:

### Requirements

- Python 3.10-3.14
- Python 3.11-3.15
- Quarto CLI 1.9+

### Installation
Expand Down
10 changes: 5 additions & 5 deletions docs/population-graph.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@ registries, scientific gates, or committed evidence.

## Dependencies and execution

The graph example requires Python **3.13 or 3.14**, NumPy 2+, pandas 2.3+,
The graph example requires Python **3.13, 3.14, or 3.15**, NumPy 2+, pandas 2.3+,
and the Microcosm graph/frame revisions containing typed artifact edges and
`microcosm.graph.randomness.keyed_uniform`. The default Dynamics installation
continues to support Python 3.10–3.14 without importing Microcosm. The entry
continues to support Python 3.11–3.15 without importing Microcosm. The entry
point checks capabilities and gives installation guidance when they are absent.

The `graph` extra pins both graph and Frame to core main commit
`c28b45376209f31676286e07f5dcb4593bcd248d`. An older package merely sharing
the version number `0.1.0` is insufficient. In an isolated Python 3.13 or 3.14
the version number `0.1.0` is insufficient. In an isolated Python 3.13, 3.14, or 3.15
environment, install with `uv pip install '.[graph]'`. Replace the Git pins
with a compatible published release when one exists. CI installs this exact
extra, refuses missing capabilities, and runs the integration on both supported
extra, refuses missing capabilities, and runs the integration on all three supported
Python versions. Do not modify the existing scientific gate environment. No
rules engine, restricted microdata, or optional forest fitter is needed here.

Expand Down Expand Up @@ -220,7 +220,7 @@ check direct-step parity, fit reuse and changed application identity. They skip
the optional runtime cases when the required core capabilities are unavailable;
the JSON and dependency
boundary tests still run. Importing `populace_dynamics.graph` remains safe
under Python 3.10–3.12.
under Python 3.11–3.12.

The annual tests independently repeat the existing fit, mortality, ageing,
and keyed-draw operations; compare every retained person-period and weighted
Expand Down
12 changes: 8 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "policyengine-social-security-model"
version = "0.1.0"
description = "Open-source dynamic microsimulation model for Social Security policy analysis"
readme = "README.md"
requires-python = ">=3.10,<3.15"
requires-python = ">=3.11"
license = {text = "MIT"}
authors = [
{name = "Max Ghenis", email = "max@policyengine.org"},
Expand All @@ -29,11 +29,11 @@ classifiers = [
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3.15",
"Topic :: Scientific/Engineering :: Economics",
]

Expand Down Expand Up @@ -91,12 +91,12 @@ where = ["src"]

[tool.black]
line-length = 79
target-version = ['py310', 'py311', 'py312', 'py313']
target-version = ['py311', 'py312', 'py313']
include = '\.pyi?$'

[tool.ruff]
line-length = 79
target-version = "py310"
target-version = "py311"

[tool.ruff.lint]
select = [
Expand All @@ -109,6 +109,10 @@ select = [
]
ignore = [
"E501", # line too long (handled by black)
# The py311 target newly flags these. Applying them is a separate
# style change, and UP042 alters str() on enums.
"UP017", # datetime-timezone-utc
"UP042", # replace-str-enum
]

[tool.ruff.lint.per-file-ignores]
Expand Down