Skip to content

Add support for Python 3.15 - #136

Merged
mikejturner merged 3 commits into
mainfrom
multipython-testing
Nov 2, 2026
Merged

mikejturner merged 3 commits into
mainfrom
multipython-testing

Conversation

@mikejturner

Copy link
Copy Markdown
Contributor
  • Drops support for Python v3.11.1
  • Adds support for Python v3.15.
  • Bumps versions of most dependencies.
  • Adds a justfile for local testing across multiple version of python. The github action already tests across multiple versions of python with PR Migrate to uv, ruff and ty #108.

Footnotes

  1. Numpy prevents us from supporting both 3.11 and 3.15 at the same time, even though at the time of writing both these versions of python are in support. ↩

@mikejturner

Copy link
Copy Markdown
Contributor Author

✅ Code coverage on multipython-testing is at 84% (compared to main being at 84%)

🎉 No files have reduced coverage 🎉

Full Coverage Report

File Details
src/echo/__init__.py ✅ 100% → 100%
src/echo/configuration.py ✅ 100% → 100%
src/echo/constants.py ✅ 100% → 100%
src/echo/exceptions.py ✅ 100% → 100%
src/echo/functional.py ✅ 100% → 100%
src/echo/models/__init__.py ✅ 100% → 100%
src/echo/models/agnostic/__init__.py ✅ 100% → 100%
src/echo/models/agnostic/aggregation.py ✅ 95% → 95%
src/echo/models/agnostic/base.py ✅ 95% → 95%
src/echo/models/agnostic/bounded.py ✅ 100% → 100%
src/echo/models/agnostic/controlled.py ✅ 100% → 100%
src/echo/models/agnostic/flex.py ✅ 100% → 100%
src/echo/models/agnostic/input_output.py ✅ 100% → 100%
src/echo/models/agnostic/storage.py ✅ 82% → 82%
src/echo/models/agnostic/tellegen/__init__.py ✅ 100% → 100%
src/echo/models/agnostic/tellegen/base.py ✅ 100% → 100%
src/echo/models/agnostic/tellegen/multi_commodity.py ✅ 43% → 43%
src/echo/models/agnostic/tellegen/partitioned_multi_commodity.py ✅ 96% → 96%
src/echo/models/agnostic/tellegen/three_way_valve.py ✅ 90% → 90%
src/echo/models/agnostic/time_delay.py ✅ 100% → 100%
src/echo/models/agnostic/time_varying.py ✅ 77% → 77%
src/echo/models/base/__init__.py ✅ 100% → 100%
src/echo/models/base/edge.py ✅ 68% → 68%
src/echo/models/base/node.py ✅ 96% → 96%
src/echo/models/base/optimisation_graph.py ✅ 72% → 72%
src/echo/models/base/path.py ✅ 92% → 92%
src/echo/models/base/port.py ✅ 98% → 98%
src/echo/models/base/transform.py ✅ 90% → 90%
src/echo/models/base/types.py ✅ 100% → 100%
src/echo/models/carbon/__init__.py ✅ 100% → 100%
src/echo/models/carbon/aggregation.py ✅ 100% → 100%
src/echo/models/carbon/base.py ✅ 100% → 100%
src/echo/models/electrical/__init__.py ✅ 100% → 100%
src/echo/models/electrical/base.py ✅ 100% → 100%
src/echo/models/electrical/ev/__init__.py ✅ 100% → 100%
src/echo/models/electrical/ev/base.py ✅ 94% → 94%
src/echo/models/electrical/ev/deprecated.py ✅ 34% → 34%
src/echo/models/electrical/ev/ev_with_profile.py ✅ 73% → 73%
src/echo/models/electrical/ev/v0g.py ✅ 100% → 100%
src/echo/models/electrical/ev/v1g.py ✅ 100% → 100%
src/echo/models/electrical/ev/v2g.py ✅ 100% → 100%
src/echo/models/electrical/generation.py ✅ 95% → 95%
src/echo/models/electrical/inverter.py ✅ 92% → 92%
src/echo/models/gas/__init__.py ✅ 100% → 100%
src/echo/models/gas/base.py ✅ 100% → 100%
src/echo/models/gas/boiler_fixedcop.py ✅ 86% → 86%
src/echo/models/gas/boiler_tempcontrolled.py ✅ 72% → 72%
src/echo/models/prebuilt/__init__.py ✅ 100% → 100%
src/echo/models/prebuilt/battery.py ✅ 75% → 75%
src/echo/models/prebuilt/diesel_generator.py ✅ 59% → 59%
src/echo/models/prebuilt/flex.py ✅ 79% → 79%
src/echo/models/prebuilt/load.py ✅ 91% → 91%
src/echo/models/prebuilt/scaled_solar.py ✅ 67% → 67%
src/echo/models/prebuilt/solar.py ✅ 50% → 50%
src/echo/models/scenario.py ✅ 100% → 100%
src/echo/models/thermal/__init__.py ✅ 100% → 100%
src/echo/models/thermal/base.py ✅ 49% → 49%
src/echo/models/thermal/parameterised_chiller.py ✅ 85% → 85%
src/echo/models/thermal/parameterised_heatpump.py ✅ 88% → 88%
src/echo/models/thermal/simple_chiller.py ✅ 88% → 88%
src/echo/models/thermal/simple_heatpump.py ✅ 92% → 92%
src/echo/models/thermal/simple_heatpump_dualoutput.py ✅ 92% → 92%
src/echo/models/thermal/storage.py ✅ 81% → 81%
src/echo/objectives/__init__.py ✅ 100% → 100%
src/echo/objectives/base.py ✅ 98% → 98%
src/echo/objectives/contingency.py ✅ 94% → 94%
src/echo/objectives/power.py ✅ 87% → 87%
src/echo/objectives/tariff.py ✅ 85% → 85%
src/echo/optimiser.py ✅ 72% → 72%
src/echo/tracker.py ✅ 43% → 43%
src/echo/utils.py ✅ 61% → 61%
src/echo/validators.py ✅ 94% → 94%
src/echo/visualization.py ✅ 91% → 91%
TOTAL ✅ 84% → 84%

Comment thread justfile Resolved

@explodingdinosaurs explodingdinosaurs left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Happy to approve if the one question is considered

@mikejturner
mikejturner merged commit 3e18f6a into main Nov 2, 2026
11 checks passed
@mikejturner
mikejturner deleted the multipython-testing branch November 2, 2026 00:12
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.

2 participants