To get setup for development, see this video if you prefer VS Code, or this older video if you prefer PyCharm, and the instructions below.
git clone git@github.com:[username]/malariagen-data-python.git
cd malariagen-data-pythonsudo add-apt-repository ppa:deadsnakes/ppa
sudo apt install python3.10 python3.10-venvpython3.10 -m pip install --user pipx
python3.10 -m pipx ensurepath
pipx install poetrypoetry install
poetry shellpipx install pre-commit
pre-commit installRun pre-commit checks manually:
pre-commit run --all-filesRun fast unit tests using simulated data:
poetry run pytest -v tests/anophTo run legacy tests which read data from GCS, you'll need to request access to MalariaGEN data on GCS.
Once access has been granted, install the Google Cloud CLI:
./install_gcloud.shThen obtain application-default credentials:
./google-cloud-sdk/bin/gcloud auth application-default loginOnce authenticated, run legacy tests:
poetry run pytest --ignore=tests/anoph -v testsTests will run slowly the first time, as data will be read from GCS and cached locally in the gcs_cache folder.