Guidelines¶
We welcome contributions to DeepReg. Please raise an issue to report bugs, request features, or ask questions. For code contribution, please follow the guidelines below.
Setup¶
We recommend using conda environment on Linux or Mac machines for code development. The setup steps are:
Clone or fork the repository.
Install and activate
deepreg
conda environment.Run
pre-commit install
under the root of this repositoryDeepReg/
to install pre-commit hooks.
Resolve an issue¶
For resolving an issue, please
Create a branch.
The branch name should start with the issue number, followed by hyphen separated words describing the issue, e.g.
1-update-contribution-guidelines
.Implement the required features or fix the reported bugs.
There are several guidelines for commit, coding, testing, and documentation.
Please create commits with meaningful commit messages.
The commit message should start with
Issue #<issue number>:
, for instanceIssue #1: add commit requirements.
Please write or update unit-tests for the added or changed functionalities.
Pull request will not be approved if test coverage is decreased. Check testing guidelines for further details.
Please write meaningful docstring and documentations for added or changed code.
We use Sphinx docstring format.
Please update the CHANGELOG regarding the changes.
Create a pull request when the branch is ready.
Please resume the changes with some more details in the description and check the boxes after submitting the pull request. Optionally, you can create a pull request and add
WIP
in the name to mark is as working in progress.
Add a DeepReg demo¶
Adding DeepReg demo should be done via pull request. Besides the guidelines above, adding demo has additional requirements described in demo guidelines.