All code submitted must meet certain standards, outlined below, before it can be merged into the master branch. It is the contributor’s job to ensure that the following is satisfied, and the reviewer’s role to check that these guidelines have been followed.
The workflow to be used for submitting new code/issues is described in Git Workflow.
Any new code will be accepted only if the documentation, written in sphinx and found in docs/, has been updated accordingly, and the docstrings in the code have been updated where neccessary.
All tests should pass before submitting code. Tests are written using pytest.
The following should be checked before any code is merged:
- Function: Does the change do what it’s supposed to?
- Tests: Does it pass? Is there adequate coverage for new code?
- Style: Is the coding style consistent? Is anything overly confusing?
- Documentation: Is there a suitable change to documentation for this change?