A template repository for data science projects.
The file organisation is losely based on TDSP Project Structure and CookieCutter Data Science.
This template requires Python 3 and cookiecutter.
-
Install cookiecutter.
pip install cookiecutter jinja2_git
-
Create a new project:
cookiecutter gh:sheikhomar/cookiecutter-data-science
-
Initialise a new Git repository:
cd <NEW_PROJ_DIR> git init git add . git commit -m "Initial commit." git remote add origin <GIT_REMOTE_URL> git push -u origin master
-
Install pyenv and Poetry if not already installed:
curl https://pyenv.run | bash pyenv install curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python source $HOME/.poetry/env
-
Install dependencies:
poetry install
-
Install the pre-commit Git hooks:
poetry run pre-commit install