Skip to content

Commit c3fe711

Browse files
committed
Updating the Makefile
1 parent 227eaaf commit c3fe711

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

Makefile

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,32 @@
1+
## GLOBALS
2+
3+
PROJECT_NAME = cookiecutter-data-science
4+
PYTHON_VERSION = 3.10
5+
PYTHON_INTERPRETER = python
6+
7+
18
### UTILITIES
29
_prep:
310
rm -f **/*/.DS_store
411

512

6-
### DEV TOOLS
13+
### DEV COMMANDS
14+
15+
## Set up python interpreter environment
16+
create_environment:
17+
conda create --name $(PROJECT_NAME) python=$(PYTHON_VERSION) -y
18+
@echo ">>> conda env created. Activate with:\nconda activate $(PROJECT_NAME)"
19+
20+
## Install Python Dependencies
721
requirements:
8-
pip install -U -r dev-requirements.txt
22+
$(PYTHON_INTERPRETER) -m pip install -r dev-requirements.txt
923

24+
## Format the code using isort and black
1025
format:
1126
isort ccds hooks tests
1227
black ccds hooks tests setup.py
13-
28+
29+
## Lint using flake8 + black
1430
lint:
1531
flake8 ccds hooks tests setup.py
1632
black --check ccds hooks tests setup.py
@@ -41,4 +57,4 @@ manual-test: _prep _clean_manual_test
4157

4258
manual-test-debug: _prep _clean_manual_test
4359
mkdir -p manual_test
44-
cd manual_test && python -m pdb ../ccds/__main__.py ..
60+
cd manual_test && python -m pdb ../ccds/__main__.py ..

0 commit comments

Comments
 (0)