From 3c85d8ba97cd95a37c08f4f3b255a2b0b69406ad Mon Sep 17 00:00:00 2001 From: Paul Hallett Date: Fri, 7 Feb 2014 15:20:27 +0000 Subject: [PATCH] Makefile, flake8 for PEP8 and contributors added --- CONTRIBUTORS.rst | 10 ++++++++++ Makefile | 27 +++++++++++++++++++++++++++ requirements-dev.txt | 5 +++++ 3 files changed, 42 insertions(+) create mode 100644 CONTRIBUTORS.rst create mode 100644 Makefile create mode 100644 requirements-dev.txt diff --git a/CONTRIBUTORS.rst b/CONTRIBUTORS.rst new file mode 100644 index 0000000000..af97e7f964 --- /dev/null +++ b/CONTRIBUTORS.rst @@ -0,0 +1,10 @@ + +Original Authors +================ + +* Matthew Westcott matthew.westcott@torchbox.com + +Contributors +============ + +* Paul Hallett (twilio) hello@phalt.co diff --git a/Makefile b/Makefile new file mode 100644 index 0000000000..712af70b91 --- /dev/null +++ b/Makefile @@ -0,0 +1,27 @@ +.PHONY: clean-pyc + +help: + @echo "clean-pyc - remove Python file artifacts" + @echo "lint - check style with flake8" + @echo "test - run tests quickly with the default Python" + @echo "coverage - check code coverage quickly with the default Python" + +clean-pyc: + find . -name '*.pyc' -exec rm -f {} + + find . -name '*.pyo' -exec rm -f {} + + find . -name '*~' -exec rm -f {} + + +lint: + flake8 wagtail + +test: + python setup.py test + +test-all: + tox + +coverage: + coverage run --source wagtail setup.py + coverage report -m + coverage html + open htmlcov/index.html diff --git a/requirements-dev.txt b/requirements-dev.txt new file mode 100644 index 0000000000..306375397c --- /dev/null +++ b/requirements-dev.txt @@ -0,0 +1,5 @@ +# Requirements essentail for developing wagtail (not needed to run it) + +# For coverage and PEP8 linting +coverage==3.7.1 +flake8==2.1.0