♻️ refactor: merge grid + electricity contracts into MarketMixin #194
Loading…
Reference in a new issue
No description provided.
Delete branch "refactor/merge-market"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Two energy-market context mixins merge into one module and one class:
git mvkeeps the diff minimal (rename detection 61%).Evidence
GridMixin, contracts inElectricityContractsMixin— both energy-market reads split across two thin modules (#151 audit).After: one
MarketMixinowns the market/tariff domain; no test references the deleted modules (verified),pytest -q→ 242 passed unchanged,mypy→ clean.Merge Danger
Door: two-way
Blast Radius: none — public API unchanged (all four flat methods identical); only the
client.pybases line overlaps with sibling consolidation PRs.Closes the grid/contracts part of #176. Part of the #151 audit consolidation.
WIP: ♻️ refactor: merge grid + electricity contracts into MarketMixinto ♻️ refactor: merge grid + electricity contracts into MarketMixin99ae3758eb9466c73370