From e03afe162589e07979c30aede3735bf4fc9b9f87 Mon Sep 17 00:00:00 2001 From: BonfaceKilz Date: Mon, 15 Feb 2021 13:05:52 +0300 Subject: Update README with bootstrap instructions and how to run tests --- README.md | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index 04b8140..14b6a36 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,50 @@ # genenetwork3 GeneNetwork3 REST API for data science and machine learning + +## Installation + +##### Using python-pip + +1. Prepare your system. You need to make you have python > 3.8, and + the ability to install modules. +2. Create and enter your virtualenv: + +```bash +virtualenv --python python3 venv +. venv/bin/activate +``` +3. Install the required packages + +```bash +pip install -r requirements.txt +``` + +#### Using guix + +Simply load up the environment (for development purposes): + +```bash +guix environment --load=guix.scm +``` + +#### Running Tests + +(assuming you are in a guix container; otherwise use venv!) + +To run tests: + +```bash +python -m unittest discover -v +``` + +Running pylint: + +```bash +pylint *py tests gn3 +``` + +Running mypy(type-checker): + +```bash +mypy . +``` -- cgit v1.2.3