Skip to content

feat(tasks)!: remove the tasks subpackage; relocate ENTSO-E CLI to spotforecast2.entsoe_cli#222

Merged
bartzbeielstein merged 1 commit into
developfrom
refactor/remove-tasks-subpackage
Jun 12, 2026
Merged

feat(tasks)!: remove the tasks subpackage; relocate ENTSO-E CLI to spotforecast2.entsoe_cli#222
bartzbeielstein merged 1 commit into
developfrom
refactor/remove-tasks-subpackage

Conversation

@bartzbeielstein

Copy link
Copy Markdown
Collaborator

Summary

Final step of the spotforecast2.tasks removal (KB task-sf2-task-entsoe-extraction). The last module, task_entsoe, is dissolved:

  • Loadersspotforecast2_safe.data.entsoe_loader (released in safe 22.3.0, PR spotforecast2-safe#371); sf2's pin floor rises to >=22.3.0,<23
  • entsoe_lgbm_factory was body-identical to spotforecast2_safe.multitask.factories.default_lgbm_forecaster_factory → dropped in favour of the safe original
  • CLI (main, entsoe_xgb_factory, pipeline plumbing) → new spotforecast2.entsoe_cli module; the spotforecast2-entsoe console script keeps its name and behaviour
  • bart26k-lecture migrated its 8 import sites first (commit 1df90d3 on its master, incl. the protected 14_team_4_submission.qmd)
  • docs/tasks/entsoe.qmd: two sections still documenting the legacy ForecasterRecursiveLGBM/XGB wrapper API (removed in ADR-002) are rewritten around the current factory + MultiTask pipeline

Breaking change

spotforecast2.tasks is removed → next promotion majors to 10.0.0. Consumers unaffected: lecture pins <9 and no longer imports tasks; abschluss uses only MultiTask + safe symbols.

Verification

  • uv run pytest tests/ -q1247 passed, incl. test_consumer_contract_team4.py 4/4 against the migrated qmd with tasks/ deleted
  • ruff / black / isort / reuse — green
  • quartodoc build + interlinks + full quarto render --no-cache — green, zero warnings; _site has entsoe_cli.html, no tasks.* pages
  • uv run spotforecast2-entsoe --help works; import spotforecast2.tasksModuleNotFoundError

🤖 Generated with Claude Code

…otforecast2.entsoe_cli

The last tasks module, task_entsoe, is dissolved:

- entsoe_data_loader / entsoe_test_data_loader now live in
  spotforecast2_safe.data.entsoe_loader (safe 22.3.0); the pin floor
  rises to >=22.3.0.
- entsoe_lgbm_factory was body-identical to
  spotforecast2_safe.multitask.factories.default_lgbm_forecaster_factory
  and is dropped in favour of the safe original.
- The CLI (main, entsoe_xgb_factory, pipeline plumbing) moves to
  spotforecast2.entsoe_cli; the spotforecast2-entsoe console script is
  unchanged in name and behaviour.
- bart26k-lecture migrated its 8 import sites ahead of this change
  (commit 1df90d3 there); the team4 consumer-contract gate passes 4/4
  against the updated qmd.
- docs/tasks/entsoe.qmd loses two sections that documented the legacy
  ForecasterRecursiveLGBM/XGB wrapper API removed back in ADR-002; they
  are rewritten around the current factory + MultiTask pipeline.

BREAKING CHANGE: the spotforecast2.tasks subpackage is removed.
Import the data loaders from spotforecast2_safe.data.entsoe_loader, the
LightGBM factory from spotforecast2_safe.multitask.factories, and the
CLI module as spotforecast2.entsoe_cli. The spotforecast2-entsoe console
script is unaffected.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@codecov

codecov Bot commented Jun 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@bartzbeielstein bartzbeielstein merged commit 184b1d1 into develop Jun 12, 2026
10 checks passed
@bartzbeielstein bartzbeielstein deleted the refactor/remove-tasks-subpackage branch June 12, 2026 23:12
@bartzbeielstein

Copy link
Copy Markdown
Collaborator Author

🎉 This PR is included in version 10.0.0-rc.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@bartzbeielstein

Copy link
Copy Markdown
Collaborator Author

🎉 This PR is included in version 10.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant