Contributing¶
We welcome contributions to OntoMem! Here's how to get started.
Development Setup¶
# Clone the repository
git clone https://github.com/yifanfeng97/ontomem.git
cd ontomem
# Install development dependencies
uv sync --group dev
Making Changes¶
- Create a feature branch:
git checkout -b feature/your-feature - Make your changes
- Run tests:
pytest tests/ - Format code:
black . - Commit:
git commit -m "Add feature description" - Push:
git push origin feature/your-feature - Create a Pull Request
Code Style¶
- Use
blackfor formatting - Use
rufffor linting - Follow PEP 8
- Add docstrings to functions
Testing¶
# Run all tests
pytest tests/
# Run specific test file
pytest tests/test_core.py
# Run with coverage
pytest --cov=ontomem tests/
Documentation¶
- Update docstrings for new features
- Update README if adding new capabilities
- Build docs:
mkdocs serve
Issues & Discussions¶
- Bug reports: GitHub Issues
- Feature requests: GitHub Issues
- Questions: GitHub Discussions
Thank you for contributing! 🚀