From a02c781bbe2c7ad5083c5640391914563622bbe6 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Wed, 9 Dec 2015 22:30:52 +0000 Subject: [PATCH] Added flake8 and coverage --- django_client_reverse/test_urls.py | 2 +- requirements.txt | 2 ++ runtests | 5 ++++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/django_client_reverse/test_urls.py b/django_client_reverse/test_urls.py index 07e0512..270c13d 100644 --- a/django_client_reverse/test_urls.py +++ b/django_client_reverse/test_urls.py @@ -1,4 +1,4 @@ -from django.conf.urls import include, url +from django.conf.urls import url from django_client_reverse.views import Reverser urlpatterns = [ diff --git a/requirements.txt b/requirements.txt index cb90890..0ef1142 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,5 @@ +coverage==4.0.3 Django==1.8.7 djangorestframework==3.3.1 dj-database-url==0.3.0 +flake8==2.4.1 diff --git a/runtests b/runtests index 147caff..5224e55 100644 --- a/runtests +++ b/runtests @@ -4,4 +4,7 @@ set -e export IN_URL_TEST=true -manage.py test $@ +coverage run --source=django_client_reverse manage.py test $@ +flake8 django_client_reverse --ignore=E128,E501,E401 +coverage html +coverage report