Contributing to Empathy Framework¶
Thank you for your interest in contributing to the Empathy Framework!
Getting Started¶
- Fork the repository
- Clone your fork:
git clone https://github.com/YOUR_USERNAME/empathy.git - Create a branch:
git checkout -b feature/your-feature-name - Make your changes
- Run tests:
pytest - Commit:
git commit -m "feat: your feature description" - Push:
git push origin feature/your-feature-name - Create a Pull Request
Development Setup¶
# Clone repository
git clone https://github.com/Smart-AI-Memory/empathy.git
cd empathy
# Install in development mode
pip install -e .[dev]
# Run tests
pytest
# Run linters
black .
ruff check .
Code Style¶
We use: - Black for code formatting - Ruff for linting - Google-style docstrings
Testing¶
All new features should include tests:
# Run all tests
pytest
# Run with coverage
pytest --cov=empathy_os
# Run specific test
pytest tests/test_core.py::test_specific_function
Documentation¶
Update documentation for any user-facing changes:
- Add examples to docs/examples/
- Update API docs if needed
- Update CHANGELOG.md
Pull Request Guidelines¶
- Keep PRs focused (one feature/fix per PR)
- Include tests
- Update documentation
- Follow commit message conventions:
feat:new featurefix:bug fixdocs:documentationtest:testsrefactor:refactoring
Questions?¶
Open an issue or ask in Discussions!