This project assumes you have Anaconda or Miniconda installed on your machine. If you do not, please install from https://docs.conda.io/en/latest/miniconda.html. This is my boilerplate loosely based on Cookie Cutter Data Science, with modifications including easier Anaconda support, isort
seeding, pre-commit configs, and Travis CI. If you would like to run a CI pipeline, make sure you have an account on Travis CI and authorize builds on your GitHub repository. Otherwise, you may remove .travis.yml
.
git clone
this repository in the desired directory on your local machine.cd
into the project directory.- To create a conda environment:
These
conda create -n <env_name> dep1 dep2 ... conda env export --no-builds --from-history | grep -v "prefix" > environment.yml
export
command flags add only explicit dependencies toenvironment.yml
and prevent cross-platform build issues with dependencies during CI. If you would like to use the pre-madeenvironment.yml
in this project, create an environment as follows:conda env create -f environment.yml
- Run
conda env update && conda activate <env_name>
. - Run
pip install -e .
. - Run
pre-commit install
. - If you want to run CI, change
conda activate boilerplate
toconda activate <your_env_name>
. - If you wish to use documentation, make any edits necessary in
docs/source/conf.py
anddocs/source/index.rst
, or add your own reStructuredText pages. - If you to include test coverage in your build: In
.travis.yml
, uncommentpython -m pytest tests --cov=src --cov-fail-under=0
and change the--cov-fail-under
value in to your intended test coverage percentage.