Contribution¶
We welcome contributions from the community. Bug fixes and improvements to the core library should target the main
branch. For new features, we recommend first opening an issue to discuss the proposed contribution before opening a pull
request to the extras branch.
Code Style¶
Follow the PEP 8 style guide for code.
Follow the Google Style Guide for docstrings.
Use the ruff linter and formatter to maintain code quality.
Workflow¶
For new features, open an issue to discuss the proposed contribution.
Fork the repository and create a branch from
mainfor bug fixes, or fromextrasfor new features.Implement the contribution. New features should extend the core library rather than modify it. Document the new feature in the matching category of the library features in the overview guide (e.g. algorithms or models) and add it to the list of features on the main page of the documentation.
Add yourself to the CONTRIBUTORS.md file.
Run pre-commit to format and lint code with:
pre-commit run --all-files
Open a pull request to the
mainbranch for bug fixes, or to theextrasbranch for new features.