Added flake8 and coverage
This commit is contained in:
parent
9e1f79b6a2
commit
a02c781bbe
3 changed files with 7 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
from django.conf.urls import include, url
|
from django.conf.urls import url
|
||||||
from django_client_reverse.views import Reverser
|
from django_client_reverse.views import Reverser
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
coverage==4.0.3
|
||||||
Django==1.8.7
|
Django==1.8.7
|
||||||
djangorestframework==3.3.1
|
djangorestframework==3.3.1
|
||||||
dj-database-url==0.3.0
|
dj-database-url==0.3.0
|
||||||
|
flake8==2.4.1
|
||||||
|
|
5
runtests
5
runtests
|
@ -4,4 +4,7 @@ set -e
|
||||||
|
|
||||||
export IN_URL_TEST=true
|
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
|
||||||
|
|
Reference in a new issue