Thank you for your interest in contributing! This document outlines how to contribute effectively.
- Fork the repository on GitHub
- Clone your fork locally:
git clone https://github.com/your-username/allocation-decision-framework.git cd allocation-decision-framework - Create a development branch:
git checkout -b feature/your-feature-name
- Install development dependencies:
pip install -e ".[dev]"
- Format code with Black:
black allocation_framework/
- Lint with Flake8:
flake8 allocation_framework/
- Type hints are required. Check with mypy:
mypy allocation_framework/
- Write tests for all new features in
tests/ - Run tests locally:
pytest tests/ -v --cov=allocation_framework
- Aim for >80% code coverage
- Document public functions and classes with docstrings
- Update README.md and relevant docs/ files
- Add examples or notebooks demonstrating new features
File an issue with:
- Clear description of the bug
- Steps to reproduce
- Expected vs. actual behavior
- Python version & environment info
Propose new features with:
- Clear use case and motivation
- How it aligns with the framework's goals
- Potential implementation approach
- Ensure tests pass:
pytest tests/ --cov=allocation_framework
- Update docstrings and type hints
- Add examples if applicable
- Reference the paper if feature builds on it
- Submit a pull request with a clear description
- Fix typos and improve clarity
- Add tutorials or examples
- Improve API documentation
- Update ARCHITECTURE.md if needed
- Update your branch with latest main:
git pull origin main
- Write descriptive commit messages:
[feature] Add allocation-aware loss function Implements the fairness-weighted loss from the paper's Section 3.2. Includes unit tests and example notebook. - Push and create a PR on GitHub
- Link related issues (e.g., "Closes #42")
- Address review feedback promptly
- Be respectful and inclusive
- Assume good intent
- Focus on ideas, not people
- Report conduct issues to the maintainer
- Open a GitHub issue with the
questionlabel - Check existing issues first
- Be specific about what you're trying to achieve
Contributors will be acknowledged in:
- CONTRIBUTORS.md file
- Release notes for their contributions
Thank you for helping make allocation-aware healthcare AI more accessible! 🙏