Skip to content

Latest commit

 

History

History
53 lines (33 loc) · 2.13 KB

CONTRIBUTING.md

File metadata and controls

53 lines (33 loc) · 2.13 KB

Contributing

General guidelines

We follow the fork and pull model on GitHub. We also recommend checking out this recommended git workflow.

Contributing Code

This project has a number of requirements for all code contributed.

  • We use pytest for unit tests.
  • We use Black for code formatting.
  • We use mypy for static type checking.

We strongly enforce continuous integration (CI) on all pull requests. This includes running unit tests, code coverage, code style checks, and static type checks. We use Github Actions for this purpose.

Setting up Your Development Environment

After forking and cloning the repository, install in "editable" (i.e. development) mode using the -e option:

git clone https://github.com/koszullab/metator.git
cd metator
pip install -e .[dev]

Running/Adding Unit Tests

We use pytest as our unit testing framework. Once you've configured your environment, you can just cd to the root of your repository and run

pytest

Unit tests are automatically run on GitHub for all pull requests.

Pull Requests

Pull requests are welcome, once changes have been tested and pass all CI checks. Please make sure to include tests for any new functionality.

Versioning

Acknowledgments

This document is based off of the guidelines from the sparse project.