Contributing¶
Development Setup¶
# Clone repository
git clone https://github.com/bdamokos/mobility-db-api.git
cd mobility-db-api
# Create virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install development dependencies
pip install -e ".[dev]"
Running Tests¶
Documentation¶
# Install documentation dependencies
pip install -e ".[docs]"
# Start documentation server
mkdocs serve
Pull Request Process¶
- Fork the repository
- Create a feature branch
- Make your changes
- Run tests and update documentation
- Submit pull request
Commit Messages¶
Follow the conventional commits specification:
Types:
- feat
: New feature
- fix
: Bug fix
- docs
: Documentation changes
- test
: Adding/updating tests
- refactor
: Code refactoring
Example:
feat(client): add support for direct downloads
- Add direct_download parameter
- Update documentation
- Add tests
Release Process¶
- Update version in
pyproject.toml
- Update the changelog
- Create release commit
- Create GitHub release
- GitHub Actions will publish to PyPI