Contributing to mjinx
March 3, 2025 ยท View on GitHub
We're thrilled that you're interested in contributing to mjinx! This document outlines the process for contributing to this project.
How to Contribute
There are many ways to contribute to mjinx:
- Reporting bugs
- Suggesting enhancements
- Writing documentation
- Submitting code changes
Reporting Bugs
- Check the issue tracker to see if the bug has already been reported.
- If not, create a new issue. Provide a clear title and description, as much relevant information as possible, and a code sample or executable test case demonstrating the bug.
Suggesting Enhancements
- Check the issue tracker to see if the enhancement has already been suggested.
- If not, create a new issue. Clearly describe the enhancement, why it would be useful, and any potential drawbacks.
Writing Documentation
Good documentation is crucial. If you notice any part of our documentation that could be improved or expanded, please let us know or submit a pull request with your suggested changes.
Submitting Code Changes
-
Fork the repository.
-
Create a new branch for your changes.
-
Make your changes in your branch.
Please, pay attention to the code style and mypy typing, it should match the one in the repository. The authors suggest to use pre-commit:
pip3 install pre-commit pre-commit installThis is included in one of the tests, and if you ignore it, the tests won't pass.
-
Add or update tests as necessary.
-
Ensure the test suite passes.
-
Update the documentation as needed.
-
Push your branch and submit a pull request.
Pull Request Process
- Ensure your code follows the project's style guidelines.
- Update the README.md or relevant documentation with details of changes, if applicable.
- Add tests for your changes and ensure all tests pass.
- Your pull request will be reviewed by the maintainers. They may suggest changes or improvements.
- Once approved, your pull request will be merged.