diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..e5a5f5d --- /dev/null +++ b/Makefile @@ -0,0 +1,23 @@ +PYTHON=python3 +PYCODESTYLE=pycodestyle + +.DEFAULT_GOAL = help + +help: + @echo "The following targets are supported:" + @echo " setup install required packages" + @echo " test run the tests" + + +setup: + pip install -r requirements.txt + + +test: + ${PYCODESTYLE} *.py + ${PYTHON} -m pytest + +clean: + @echo "cleaning" + +.PHONY: setup test clean help diff --git a/requirements.txt b/requirements.txt index cbc7c45..706464a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,8 @@ flask flask_flatpages + +pytest +pytest-cov +requests +pycodestyle +codecov