Template repo for data analysis projects
Includes typical settings for VScode
Based on Kedro and Cookie Cutter Data Science
- Kedro/cookie cutter based
- fsspec for IO
- config.yml
- testing
- mkdocs
- pre-commit code formatting
Clone the repo.
Replace instances of Project
and away you go.
Conda:
conda env create -f environment.yml
Docker via devcontainers in vscode.
Pip + venv:
python -m venv project_env
source project_env/bin/activate
pip install -r src/requirements_dev.txt
pip install -r src/requirements_test.txt
pip install -e src/
Installing pre-commit hooks in each case:
pre-commit install
pytest
mkdocs build
or mkdocs serve
Taken directly from Kedro
.
black
for general style.pydocstyle
- doc strings - google style.isort
- for ordering imports.
- Project specific vscode settings (autoformatter etc.) in the dev container json and vscode folder? How to apply with conda/pip installations?
- Personal dev settings (shortcuts etc.) not in the dev container.