From 8f50ee946938491dff33858c7fc07f130e19bcab Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Mon, 15 Jul 2013 13:56:36 -0400 Subject: [PATCH] Fixed the import errors hacking warning --- storyboard/projects/admin.py | 5 ++++- storyboard/stories/admin.py | 5 ++++- storyboard/stories/models.py | 7 +++++-- tox.ini | 2 +- 4 files changed, 14 insertions(+), 5 deletions(-) diff --git a/storyboard/projects/admin.py b/storyboard/projects/admin.py index 98d8e5e0..64c087cf 100644 --- a/storyboard/projects/admin.py +++ b/storyboard/projects/admin.py @@ -13,9 +13,12 @@ # License for the specific language governing permissions and limitations # under the License. -from storyboard.projects.models import Project, Series, Milestone from django.contrib import admin +from storyboard.projects.models import Milestone +from storyboard.projects.models import Project +from storyboard.projects.models import Series + admin.site.register(Project) admin.site.register(Series) diff --git a/storyboard/stories/admin.py b/storyboard/stories/admin.py index cbdcd1e0..d1686dcb 100644 --- a/storyboard/stories/admin.py +++ b/storyboard/stories/admin.py @@ -13,9 +13,12 @@ # License for the specific language governing permissions and limitations # under the License. -from storyboard.stories.models import Story, Task, Comment, StoryTag from django.contrib import admin +from storyboard.stories.models import Comment +from storyboard.stories.models import Story +from storyboard.stories.models import StoryTag +from storyboard.stories.models import Task admin.site.register(Story) admin.site.register(Task) diff --git a/storyboard/stories/models.py b/storyboard/stories/models.py index 02c73bbf..fe94679d 100644 --- a/storyboard/stories/models.py +++ b/storyboard/stories/models.py @@ -13,9 +13,12 @@ # License for the specific language governing permissions and limitations # under the License. -from django.db import models from django.contrib.auth.models import User -from storyboard.projects.models import Project, Series, Milestone +from django.db import models + +from storyboard.projects.models import Milestone +from storyboard.projects.models import Project +from storyboard.projects.models import Series class Story(models.Model): diff --git a/tox.ini b/tox.ini index 6a9e2fb3..2a2af6d3 100644 --- a/tox.ini +++ b/tox.ini @@ -25,6 +25,6 @@ commands = python setup.py testr --coverage --testr-args='{posargs}' downloadcache = ~/cache/pip [flake8] -ignore = E125,E128,H102,H30 +ignore = E125,E128,H102,H302 show-source = True exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build