Skip to content

Promotion: CodeQL alert fixes, sf2-safe 22.2.0 lock#218

Merged
bartzbeielstein merged 6 commits into
mainfrom
develop
Jun 12, 2026
Merged

Promotion: CodeQL alert fixes, sf2-safe 22.2.0 lock#218
bartzbeielstein merged 6 commits into
mainfrom
develop

Conversation

@bartzbeielstein

@bartzbeielstein bartzbeielstein commented Jun 12, 2026

Copy link
Copy Markdown
Collaborator

Promotes develop → main to close the two open code-scanning alerts (filed against main) and sync the dependency lock:

  • refactor(model_selection): shared _position_flag() helper in boundary.py — resolves CodeQL alert chore: sync main into develop [skip ci] #85 (py/redundant-comparison false positive on the inline ternary) and deduplicates the flag logic; alert chore(deps): bump spotforecast2-safe floor to >=6.0.0,<7.0 #84 (py/repeated-import in tests/test_multitask.py) also fixed
  • chore(deps): lock spotforecast2-safe 22.1.0 → 22.2.0 (lecture qmd now uses the 22.2.0 event windows; caught by the team4 consumer-contract gate); exog-provider re-export test asserts the registry as a superset so additive sf2-safe provider releases no longer break the suite

refactor maps to a patch release in .releaserc.json, so this promotion cuts 8.1.1 on main (rc 8.1.1-rc.1 on develop first).

Verified locally on the merged state: 1257 tests green, ruff clean, full quarto render green, REUSE compliant.

🤖 Generated with Claude Code

github-actions Bot and others added 6 commits June 12, 2026 07:26
…umer contract)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…ort (CodeQL)

Resolves both open code-scanning alerts:

- Alert 85 (py/redundant-comparison, warning): CodeQL mis-normalizes the
  inline "pos > 1 - warn_frac" / "pos < warn_frac" ternary in
  boundary_report and flags the second test as always true. Hoist the
  threshold into a named variable inside a shared _position_flag()
  helper, which also deduplicates the identical flag logic in
  report_boundary_positions and boundary_report.
- Alert 84 (py/repeated-import, note): remove the function-level
  "import logging" in tests/test_multitask.py that shadowed the
  module-level import.

No behavior change; black-format the module.

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

The lecture qmd now passes include_football_match_window to ConfigEntsoe
(sf2-safe 22.2.0 event windows), which the team4 consumer-contract gate
correctly flagged against the 22.1.0 lock. Bump the lock (pin >=22,<23
already allows it) and sync the lockfile self-version to 8.1.0.

Add the two new provider flags (include_football_match_window,
include_energy_saving_window) to the exog-provider re-export test and
assert registry membership as a superset so additive provider releases
in sf2-safe no longer break sf2's suite; removals still fail.

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

refactor(model_selection): resolve open CodeQL alerts; lock sf2-safe 22.2.0
## [8.1.1-rc.1](v8.1.0...v8.1.1-rc.1) (2026-06-12)

### Code Refactoring

* **model_selection:** extract _position_flag, drop shadowing import (CodeQL) ([5f5d096](5f5d096))
@bartzbeielstein

Copy link
Copy Markdown
Collaborator Author

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

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.

2 participants