Skip to content

Latest commit

 

History

History
42 lines (32 loc) · 1.72 KB

CONTRIBUTING.md

File metadata and controls

42 lines (32 loc) · 1.72 KB

How to contribute

The xcube-stac project welcomes contributions of any form as long as you respect our code of conduct and stay in line with the following instructions and guidelines.

If you have suggestions, ideas, feature requests, or if you have identified a malfunction or error, then please post an issue.

If you'd like to submit code or documentation changes, we ask you to provide a pull request (PR) here. For code and configuration changes, your PR must be linked to a corresponding issue.

To ensure that your code contributions are consistent with our project’s coding guidelines, please make sure all applicable items of the following checklist are addressed in your PR.

PR checklist

  • Format code using black with default settings. Check also section code style below.
  • Your change shall not break existing unit tests. pytest must run without errors.
  • Add unit tests for any new code not yet covered by tests.
  • Make sure test coverage is close to 100% for any change. Use pytest --cov=xcube_stac --cov-report=html to verify.

Code style

The xcube-stac code compliant to PEP-8 except for a line length of 88 characters as recommended by black. Since black is un-opinionated regarding the order of imports, we use the following three import blocks separated by an empty line:

  1. Python standard library imports, e.g., os, typing, etc
  2. 3rd-party imports, e.g., xarray, zarr, etc
  3. Relative xcube_stac module imports using . prefix.