Skip to content

Commit

Permalink
Merge branch 'v2' into skeleton-code
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjkuch authored Oct 13, 2022
2 parents e32e31f + d12f218 commit f1fcf8c
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 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 --profile black ccds hooks tests "{{ cookiecutter.repo_name }}/{{ cookiecutter.module_name }}"
black ccds hooks tests setup.py "{{ cookiecutter.repo_name }}/{{ cookiecutter.module_name }}"

## Lint using flake8 + black
lint:
flake8 ccds hooks tests setup.py "{{ cookiecutter.repo_name }}/{{ cookiecutter.module_name }}"
isort --check --profile black ccds hooks tests "{{ cookiecutter.repo_name }}/{{ cookiecutter.module_name }}"
Expand Down Expand Up @@ -42,4 +58,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 f1fcf8c

Please sign in to comment.