Created
May 12, 2017 12:31
-
-
Save pierreprinetti/20529d70ed8450bea25dc23f6a71c1d1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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