From db1ad8b4d86ce63ad6e8430b87a9091b2350dd27 Mon Sep 17 00:00:00 2001 From: Iacopo Spalletti Date: Wed, 11 Jun 2014 21:25:10 +0200 Subject: [PATCH] Code linting --- Makefile | 2 +- djangocms_blog/cms_toolbar.py | 4 ++-- djangocms_blog/compat.py | 2 +- djangocms_blog/forms.py | 4 ++-- djangocms_blog/views.py | 1 - requirements-test.txt | 1 + 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index a813a48..868793a 100644 --- a/Makefile +++ b/Makefile @@ -43,4 +43,4 @@ release: clean sdist: clean python setup.py sdist - ls -l dist \ No newline at end of file + ls -l dist diff --git a/djangocms_blog/cms_toolbar.py b/djangocms_blog/cms_toolbar.py index a35c4bc..962c4c2 100644 --- a/djangocms_blog/cms_toolbar.py +++ b/djangocms_blog/cms_toolbar.py @@ -22,6 +22,6 @@ class BlogToolbar(CMSToolbar): current_post = getattr(self.request, BLOG_CURRENT_POST_IDENTIFIER, None) if current_post and self.request.user.has_perm('djangocms_blog.change_post'): # pragma: no cover - admin_menu.add_modal_item(_('Edit Post'),reverse( + admin_menu.add_modal_item(_('Edit Post'), reverse( 'admin:djangocms_blog_post_change', args=(current_post.pk,)), - active=True) \ No newline at end of file + active=True) diff --git a/djangocms_blog/compat.py b/djangocms_blog/compat.py index 8012112..e573006 100644 --- a/djangocms_blog/compat.py +++ b/djangocms_blog/compat.py @@ -184,4 +184,4 @@ class Counter(dict): newcount = _min(self[elem], other[elem]) if newcount > 0: result[elem] = newcount - return result \ No newline at end of file + return result diff --git a/djangocms_blog/forms.py b/djangocms_blog/forms.py index 3abc1d5..3a760d0 100644 --- a/djangocms_blog/forms.py +++ b/djangocms_blog/forms.py @@ -14,5 +14,5 @@ class LatestEntriesForm(forms.ModelForm): class Media: css = { 'all': ('%sdjangocms_blog/css/%s' % (settings.STATIC_URL, - "djangocms_blog_admin.css"),) - } \ No newline at end of file + "djangocms_blog_admin.css"),) + } diff --git a/djangocms_blog/views.py b/djangocms_blog/views.py index c33ec2a..e558717 100644 --- a/djangocms_blog/views.py +++ b/djangocms_blog/views.py @@ -3,7 +3,6 @@ import datetime from django.utils.translation import get_language from django.contrib.auth.models import User from django.core.urlresolvers import resolve -from django.http import Http404 from django.views.generic import ListView, DetailView from parler.views import ViewUrlMixin, TranslatableSlugMixin diff --git a/requirements-test.txt b/requirements-test.txt index 1a04794..5871396 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -4,3 +4,4 @@ coveralls mock>=1.0.1 nose>=1.3.0 django-nose>=1.2 +flake8