From 8103db216177f558cb7a5ce4b3ec942d97640cf8 Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Mon, 15 Jul 2013 13:48:50 -0400 Subject: [PATCH] Enabled more of HACKING --- storyboard/stories/tests.py | 3 +-- storyboard/stories/views.py | 15 ++++++++++----- tox.ini | 2 +- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/storyboard/stories/tests.py b/storyboard/stories/tests.py index 501deb77..f6a6db99 100644 --- a/storyboard/stories/tests.py +++ b/storyboard/stories/tests.py @@ -10,7 +10,6 @@ from django.test import TestCase class SimpleTest(TestCase): def test_basic_addition(self): - """ - Tests that 1 + 1 always equals 2. + """Tests that 1 + 1 always equals 2. """ self.assertEqual(1 + 1, 2) diff --git a/storyboard/stories/views.py b/storyboard/stories/views.py index e4a68054..dd12bcc1 100644 --- a/storyboard/stories/views.py +++ b/storyboard/stories/views.py @@ -14,13 +14,18 @@ # under the License. from django.contrib.auth.decorators import login_required -from django.views.decorators.http import require_POST +from django.contrib.auth.models import User from django.http import HttpResponseRedirect from django.shortcuts import render -from django.contrib.auth.models import User +from django.views.decorators.http import require_POST -from storyboard.projects.models import Project, Milestone, Series -from storyboard.stories.models import Story, Task, Comment, StoryTag +from storyboard.projects.models import Milestone +from storyboard.projects.models import Project +from storyboard.projects.models import Series +from storyboard.stories.models import Comment +from storyboard.stories.models import Story +from storyboard.stories.models import StoryTag +from storyboard.stories.models import Task def dashboard(request): @@ -247,5 +252,5 @@ def edit_story(request, storyid): comment_type=comment_type) newcomment.save() except KeyError as e: - print e + print(e) return HttpResponseRedirect('/story/%s' % story.id) diff --git a/tox.ini b/tox.ini index a19ec2eb..4b66eff8 100644 --- a/tox.ini +++ b/tox.ini @@ -24,6 +24,6 @@ commands = python setup.py testr --coverage --testr-args='{posargs}' downloadcache = ~/cache/pip [flake8] -ignore = E125,E128,H +ignore = E125,E128,H102,H30 show-source = True exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build