Skip to content

feat(tasks)!: remove unused demo and n-to-1 task modules and console scripts#220

Merged
bartzbeielstein merged 2 commits into
developfrom
refactor/remove-unused-tasks
Jun 12, 2026
Merged

feat(tasks)!: remove unused demo and n-to-1 task modules and console scripts#220
bartzbeielstein merged 2 commits into
developfrom
refactor/remove-unused-tasks

Conversation

@bartzbeielstein

Copy link
Copy Markdown
Collaborator

Summary

Usage scan across all downstream consumers (thk-ai-improvt-ii/spotforecast2_abschluss, bart26k-lecture) found no references to the demo and N-to-1 task modules or their console scripts. They are removed here (−1,850 lines).

Kept: tasks/task_entsoe.py and the spotforecast2-entsoe CLI — bart26k-lecture imports entsoe_data_loader / entsoe_test_data_loader in 8 files, including the protected 14_team_4_submission.qmd guarded by tests/test_consumer_contract_team4.py (decider requirement).

Changes

  • Delete tasks/task_demo.py and the four tasks/task_n_to_1*.py modules
  • pyproject.toml: drop the 5 console scripts (spotforecast-demo, spotforecast-n2o1, -df, -cov, -cov-df); keep spotforecast2-entsoe
  • Delete tests/test_tasks_smoke.py, tests/test_task_demo_integration.py (covered only removed modules / safe-package code)
  • Docs: trim _quarto.yml sidebar + quartodoc sections to task_entsoe; delete docs/tasks/tasks.qmd (ENTSO-E CLI remains documented in docs/tasks/entsoe.qmd); fix dead link; update MODEL_CARD.md
  • Separate style: commit fixes pre-existing isort drift in multitask/base.py

Breaking change

Removes the 5 console scripts and the spotforecast2.tasks.task_demo / task_n_to_1* modules → next promotion majors to 9.0.0. Consumers unaffected: lecture pins <9, abschluss uses no tasks symbols.

Verification

  • uv run pytest tests/ -q1247 passed (incl. team4 consumer-contract gate)
  • ruff / black / isort / reuse lint — green
  • quartodoc_build.py + quartodoc interlinks + quarto render --no-cache — full render green, no dead links
  • spotforecast2-entsoe --help works; removed scripts gone from the venv

🤖 Generated with Claude Code

bartzbeielstein and others added 2 commits June 12, 2026 23:41
Pre-existing import-sort drift flagged by isort 8; no functional change.

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

A usage scan across all downstream consumers (spotforecast2_abschluss,
bart26k-lecture) found no references to the demo and N-to-1 task modules.
tasks/task_entsoe.py stays: bart26k-lecture imports entsoe_data_loader /
entsoe_test_data_loader, including in the protected 14_team_4_submission.qmd
guarded by tests/test_consumer_contract_team4.py.

Removed modules: tasks/task_demo.py, tasks/task_n_to_1.py,
tasks/task_n_to_1_dataframe.py, tasks/task_n_to_1_with_covariates.py,
tasks/task_n_to_1_with_covariates_and_dataframe.py, their tests
(test_tasks_smoke.py, test_task_demo_integration.py), the tasks overview
docs page, and their quartodoc/sidebar entries.

BREAKING CHANGE: the spotforecast-demo, spotforecast-n2o1,
spotforecast-n2o1-df, spotforecast-n2o1-cov, and spotforecast-n2o1-cov-df
console scripts and the spotforecast2.tasks.task_demo /
spotforecast2.tasks.task_n_to_1* modules are removed.
spotforecast2-entsoe and spotforecast2.tasks.task_entsoe are unaffected.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@bartzbeielstein bartzbeielstein merged commit 5f22740 into develop Jun 12, 2026
9 checks passed
@bartzbeielstein bartzbeielstein deleted the refactor/remove-unused-tasks branch June 12, 2026 21:49
@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

Copy link
Copy Markdown
Collaborator Author

🎉 This PR is included in version 9.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 9.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