Skip to content

Latest commit

 

History

History
51 lines (34 loc) · 878 Bytes

contributing.md

File metadata and controls

51 lines (34 loc) · 878 Bytes

Development

Setting up a development environment

First clone the GitHub repo and set it as the current directory:

git clone https://github.com/saeyslab/harpy.git
cd harpy

Create a conda virtual environment as explained here and install Harpy.

conda activate harpy
pip install -e '.[testing,docs]'

This development environment is supported for:

  • CentOS
  • Ubuntu
  • MacOS with an M1/M2 Pro
  • Windows 11

Testing

To run unit tests, run the following from the root of the project:

pytest

Continuous integration will automatically run the tests on all pull requests.

Type testing

Do a type test:

mypy --ignore-missing-imports src/

Automated commit checks

Install a pre-commit hook to run all configured checks in .pre-commit-config.yaml:

pre-commit install
pre-commit run -a