Skip to content

Commit

Permalink
enable .env file only after autoenv is installed; provide docs for 'm…
Browse files Browse the repository at this point in the history
…ake help'
  • Loading branch information
bobbyno committed Apr 20, 2019
1 parent fb6a451 commit f357558
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions {{ cookiecutter.repo_name }}/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ env-create:
@printf ">>> Installing virtualenvwrapper if not already intalled.\nMake sure the following lines are in shell startup file\n\
export WORKON_HOME=$$HOME/.virtualenvs\nexport PROJECT_HOME=$$HOME/Devel\nsource /usr/local/bin/virtualenvwrapper.sh\n"
@bash -c "source `which virtualenvwrapper.sh`;mkvirtualenv $(PROJECT_NAME)"
@mv dotenv .env
@printf ">>> New virtualenv created. Activate with:\nworkon $(PROJECT_NAME)\n"

## Test python environment is setup correctly
Expand All @@ -42,9 +43,11 @@ env-test:
# Dataset Rules #
#################################################################################

## Import data from the original source to data/raw
data-import:
echo Import the data from the original source

## data/raw to data/processed
data-process:
python src/data/raw_to_processed.py

Expand All @@ -53,9 +56,11 @@ data-process:
# Code Rules #
#################################################################################

## run tests
src-test:
py.test

## flake8
src-lint:
flake8 src

Expand Down
File renamed without changes.

0 comments on commit f357558

Please sign in to comment.