Skip to content

Commit

Permalink
Merge pull request #287 from drivendata/update-makefile
Browse files Browse the repository at this point in the history
Updating the Makefile
  • Loading branch information
AllenDowney authored Oct 13, 2022
2 parents 227eaaf + c3fe711 commit d12f218
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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 ..
cd manual_test && python -m pdb ../ccds/__main__.py ..

0 comments on commit d12f218

Please sign in to comment.