Contributing
Contributions are welcome! This guide will help you get started.
Development Setup
# Clone repository
git clone https://github.com/benjaminwatts/balancing.git
cd balancing
# Create virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install dev dependencies
pip install -e ".[dev]"
pip install -r requirements-dev.txt
Running Tests
Code Quality
# Format code
black elexon_bmrs tests
isort elexon_bmrs tests
# Lint
flake8 elexon_bmrs tests
# Type check
mypy elexon_bmrs
Pull Request Process
- Fork the repository
- Create feature branch (
git checkout -b feature/amazing-feature) - Make changes and add tests
- Run quality checks (
make pre-release) - Commit changes (
git commit -m 'Add amazing feature') - Push to branch (
git push origin feature/amazing-feature) - Open Pull Request
For more details, see CONTRIBUTING.md.