Add a makefile with some default targets

Add some targets
- make help, print some usage help. Default target
- make setup to install requirements using pip (make sure to activate
  your virtual environment first)
- make test will run the tests
- make clean, just a dummy for now

Add required tools for testing and code analysis to requirements.txt

Signed-off-by: Michael Moese <mmoese@suse.com>
pull/1/head
Michael Moese 4 years ago
parent 02a46a7a16
commit 9b6798a180

@ -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

@ -1,2 +1,8 @@
flask
flask_flatpages
pytest
pytest-cov
requests
pycodestyle
codecov

Loading…
Cancel
Save