Skip to content

Add EUPHEMIA-compatible bid objects and CI workflow#5

Merged
tommed merged 3 commits into
mainfrom
feat/add-bids-module
Mar 13, 2026
Merged

Add EUPHEMIA-compatible bid objects and CI workflow#5
tommed merged 3 commits into
mainfrom
feat/add-bids-module

Conversation

@tommed

@tommed tommed commented Mar 13, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add comprehensive bid object models for European power market auctions
  • Implement GitHub Actions CI workflow for automated quality checks
  • Fix all ruff linting issues in test suite

Changes

Bid Objects (bids.py)

  • SimpleHourlyBid: Price-quantity pairs per MTU with validation
  • BlockBid: Fixed price/volume across consecutive MTUs
  • LinkedBlockBid: Parent-child bid relationships with acceptance rules
  • ExclusiveGroup: Mutually exclusive block bids with constraints
  • Full Pydantic v2 models with strict validation
  • EUPHEMIA-compatible output formats

CI/CD

  • Automated testing on push and pull requests
  • Ruff linting and formatting checks
  • Mypy type checking (strict mode)
  • Test coverage enforcement (80% threshold)
  • Python 3.11 support
  • Codecov integration

Code Quality

  • Remove unused imports
  • Fix import ordering
  • Add strict parameter to zip() calls
  • Fix line length violations (<100 chars)
  • Update to datetime.UTC alias
  • Rename unused loop variables

Test Coverage

  • 149 tests passing
  • 97% code coverage
  • Property-based tests with hypothesis
  • All bid types validated against EUPHEMIA requirements

🤖 Generated with Claude Code

tommed and others added 3 commits March 13, 2026 18:04
Resolve all remaining ruff linting violations to ensure code quality:
- Remove unused imports (PriceQuantityStep)
- Fix import ordering and formatting
- Add strict= parameter to zip() calls
- Rename unused loop variable to _i
- Split long lines for readability (<100 chars)
- Update to datetime.UTC alias

Also update CI workflow to test Python 3.11 only.

All tests passing (149/149) with 97% coverage.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Run ruff format to ensure consistent code formatting across the codebase.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@tommed tommed merged commit f91ead7 into main Mar 13, 2026
1 of 2 checks passed
@tommed tommed deleted the feat/add-bids-module branch March 13, 2026 18:14
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.

1 participant