Skip to content

Instantly share code, notes, and snippets.

@pierreprinetti
Created May 12, 2017 12:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pierreprinetti/20529d70ed8450bea25dc23f6a71c1d1 to your computer and use it in GitHub Desktop.
Save pierreprinetti/20529d70ed8450bea25dc23f6a71c1d1 to your computer and use it in GitHub Desktop.
target=src
test: venv lint
venv/bin/python -m unittest
# http://blog.bottlepy.org/2012/07/16/virtualenv-and-makefiles.html
venv: venv/bin/activate
venv/bin/activate: requirements.txt
test -d venv || python3 -m venv venv
venv/bin/pip install -Ur requirements.txt
touch venv/bin/activate
run: venv
venv/bin/python src/app.py
lint: venv
venv/bin/pylint --rcfile=.pylintrc ${target} -f parseable -r n
venv/bin/pycodestyle ${target} --max-line-length=120
venv/bin/pydocstyle ${target}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment