From c3fe71120d2b8a862972d87ae79c60df0d58bcd2 Mon Sep 17 00:00:00 2001 From: AllenDowney Date: Thu, 13 Oct 2022 15:40:54 -0400 Subject: [PATCH] Updating the Makefile --- Makefile | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index dafb6643a..50bc58ed6 100644 --- a/Makefile +++ b/Makefile @@ -1,16 +1,32 @@ +## GLOBALS + +PROJECT_NAME = cookiecutter-data-science +PYTHON_VERSION = 3.10 +PYTHON_INTERPRETER = python + + ### UTILITIES _prep: rm -f **/*/.DS_store -### DEV TOOLS +### DEV COMMANDS + +## Set up python interpreter environment +create_environment: + conda create --name $(PROJECT_NAME) python=$(PYTHON_VERSION) -y + @echo ">>> conda env created. Activate with:\nconda activate $(PROJECT_NAME)" + +## Install Python Dependencies requirements: - pip install -U -r dev-requirements.txt + $(PYTHON_INTERPRETER) -m pip install -r dev-requirements.txt +## Format the code using isort and black format: isort ccds hooks tests black ccds hooks tests setup.py - + +## Lint using flake8 + black lint: flake8 ccds hooks tests setup.py black --check ccds hooks tests setup.py @@ -41,4 +57,4 @@ manual-test: _prep _clean_manual_test manual-test-debug: _prep _clean_manual_test mkdir -p manual_test - cd manual_test && python -m pdb ../ccds/__main__.py .. \ No newline at end of file + cd manual_test && python -m pdb ../ccds/__main__.py ..