Contributing to motcpp¶
Thank you for your interest in contributing to motcpp! This document provides guidelines and instructions for contributing.
Getting Started¶
- Fork the repository
- Clone your fork:
git clone https://github.com/YOUR_USERNAME/motcpp.git - Create a branch:
git checkout -b feature/your-feature-name - Make your changes
- Test your changes:
cmake --build build && ctest - Commit with clear messages
- Push to your fork:
git push origin feature/your-feature-name - Open a Pull Request
Code Style¶
- Follow the existing code style
- Use
clang-formatfor formatting (configuration in.clang-format) - Write clear, self-documenting code
- Add comments for complex logic
Testing¶
- Add unit tests for new features
- Ensure all tests pass:
ctest --output-on-failure - Maintain or improve code coverage
Documentation¶
- Update relevant documentation files
- Add docstrings for new public APIs
- Update examples if needed
Pull Request Process¶
- Ensure your code builds on Linux, macOS, and Windows
- All tests must pass
- Documentation must be updated
- Follow the PR template
- Be responsive to feedback
Questions?¶
Open an issue or discussion on GitHub.
Thank you for contributing!