Fixed pyflakes complaints introduced with pyflakes 1.1.0
- Legacy-Id: 10896
This commit is contained in:
parent
76bb233b70
commit
846a02c3f9
|
@ -5,8 +5,8 @@ from tastypie.constants import ALL, ALL_WITH_RELATIONS
|
|||
|
||||
from ietf import api
|
||||
|
||||
from ietf.community.models import * # pyflakes:ignore
|
||||
|
||||
from ietf.community.models import ( CommunityList, ExpectedChange, DisplayConfiguration,
|
||||
ListNotification, Rule, EmailSubscription, DocumentChangeDates )
|
||||
|
||||
from ietf.doc.resources import DocumentResource
|
||||
from ietf.group.resources import GroupResource
|
||||
|
|
|
@ -5,7 +5,7 @@ from tastypie.constants import ALL, ALL_WITH_RELATIONS
|
|||
|
||||
from ietf import api
|
||||
|
||||
from ietf.dbtemplate.models import * # pyflakes:ignore
|
||||
from ietf.dbtemplate.models import DBTemplate
|
||||
|
||||
|
||||
from ietf.group.resources import GroupResource
|
||||
|
|
|
@ -3,7 +3,11 @@ from django.utils.safestring import mark_safe
|
|||
from django.contrib import admin
|
||||
from django import forms
|
||||
|
||||
from models import * # pyflakes:ignore
|
||||
from models import (StateType, State, DocAlias, DocumentAuthor, RelatedDocument,
|
||||
Document, DocHistory, BallotType, DocEvent, NewRevisionDocEvent, StateDocEvent,
|
||||
ConsensusDocEvent, BallotDocEvent, WriteupDocEvent, LastCallDocEvent,
|
||||
TelechatDocEvent, BallotPositionDocEvent)
|
||||
|
||||
from ietf.doc.utils import get_state_types
|
||||
|
||||
class StateTypeAdmin(admin.ModelAdmin):
|
||||
|
|
|
@ -5,7 +5,11 @@ from tastypie.constants import ALL, ALL_WITH_RELATIONS # pyflakes:ignore
|
|||
|
||||
from ietf import api
|
||||
|
||||
from ietf.doc.models import * # pyflakes:ignore
|
||||
from ietf.doc.models import (BallotType, DeletedEvent, StateType, State, Document,
|
||||
DocumentAuthor, DocEvent, StateDocEvent, DocHistory, ConsensusDocEvent, DocAlias,
|
||||
TelechatDocEvent, DocReminder, LastCallDocEvent, NewRevisionDocEvent, WriteupDocEvent,
|
||||
InitialReviewDocEvent, DocHistoryAuthor, BallotDocEvent, RelatedDocument,
|
||||
RelatedDocHistory, BallotPositionDocEvent)
|
||||
|
||||
|
||||
from ietf.name.resources import BallotPositionNameResource, DocTypeNameResource
|
||||
|
|
|
@ -5,7 +5,9 @@ from tastypie.constants import ALL, ALL_WITH_RELATIONS
|
|||
|
||||
from ietf import api
|
||||
|
||||
from ietf.group.models import * # pyflakes:ignore
|
||||
from ietf.group.models import (Group, GroupStateTransitions, GroupMilestone, GroupHistory,
|
||||
GroupURL, Role, GroupEvent, RoleHistory, GroupMilestoneHistory, MilestoneGroupEvent,
|
||||
ChangeStateGroupEvent)
|
||||
|
||||
|
||||
from ietf.person.resources import PersonResource
|
||||
|
|
|
@ -4,7 +4,7 @@ from tastypie.constants import ALL
|
|||
|
||||
from ietf import api
|
||||
|
||||
from ietf.iesg.models import * # pyflakes:ignore
|
||||
from ietf.iesg.models import TelechatDate, Telechat, TelechatAgendaItem
|
||||
|
||||
|
||||
class TelechatDateResource(ModelResource):
|
||||
|
|
|
@ -5,8 +5,8 @@ from tastypie.constants import ALL, ALL_WITH_RELATIONS # pyflakes:ignore
|
|||
|
||||
from ietf import api
|
||||
|
||||
from ietf.ipr.models import * # pyflakes:ignore
|
||||
|
||||
from ietf.ipr.models import ( IprDisclosureBase, IprDocRel, HolderIprDisclosure, ThirdPartyIprDisclosure,
|
||||
RelatedIpr, NonDocSpecificIprDisclosure, GenericIprDisclosure, IprEvent, LegacyMigrationIprEvent )
|
||||
|
||||
from ietf.person.resources import PersonResource
|
||||
from ietf.name.resources import IprDisclosureStateNameResource
|
||||
|
|
|
@ -5,7 +5,8 @@ from tastypie.constants import ALL, ALL_WITH_RELATIONS # pyflakes:ignore
|
|||
|
||||
from ietf import api
|
||||
|
||||
from ietf.liaisons.models import * # pyflakes:ignore
|
||||
from ietf.liaisons.models import (LiaisonStatement, LiaisonStatementGroupContacts,
|
||||
LiaisonStatementEvent, LiaisonStatementAttachment, RelatedLiaisonStatement)
|
||||
|
||||
|
||||
from ietf.person.resources import EmailResource
|
||||
|
|
|
@ -5,7 +5,7 @@ from tastypie.constants import ALL, ALL_WITH_RELATIONS # pyflakes:ignore
|
|||
|
||||
from ietf import api
|
||||
|
||||
from ietf.mailtrigger.models import * # pyflakes:ignore
|
||||
from ietf.mailtrigger.models import Recipient, MailTrigger
|
||||
|
||||
|
||||
class RecipientResource(ModelResource):
|
||||
|
|
|
@ -5,7 +5,7 @@ from tastypie.constants import ALL, ALL_WITH_RELATIONS
|
|||
|
||||
from ietf import api
|
||||
|
||||
from ietf.message.models import * # pyflakes:ignore
|
||||
from ietf.message.models import Message, SendQueue
|
||||
|
||||
|
||||
from ietf.person.resources import PersonResource
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
from django.contrib import admin
|
||||
from models import * # pyflakes:ignore
|
||||
from ietf.name.models import (GroupTypeName, GroupStateName, RoleName, StreamName,
|
||||
DocRelationshipName, DocTypeName, DocTagName, StdLevelName, IntendedStdLevelName,
|
||||
DocReminderTypeName, BallotPositionName, SessionStatusName, TimeSlotTypeName,
|
||||
ConstraintName, NomineePositionStateName, FeedbackTypeName, DBTemplateTypeName,
|
||||
DraftSubmissionStateName, RoomResourceName)
|
||||
|
||||
|
||||
class NameAdmin(admin.ModelAdmin):
|
||||
|
|
|
@ -5,7 +5,13 @@ from tastypie.constants import ALL, ALL_WITH_RELATIONS # pyflakes:ignore
|
|||
|
||||
from ietf import api
|
||||
|
||||
from ietf.name.models import * # pyflakes:ignore
|
||||
from ietf.name.models import (TimeSlotTypeName, GroupStateName, DocTagName, IntendedStdLevelName,
|
||||
LiaisonStatementPurposeName, DraftSubmissionStateName, DocTypeName, RoleName,
|
||||
IprDisclosureStateName, StdLevelName, LiaisonStatementEventTypeName, GroupTypeName,
|
||||
IprEventTypeName, GroupMilestoneStateName, SessionStatusName, DocReminderTypeName,
|
||||
ConstraintName, MeetingTypeName, DocRelationshipName, RoomResourceName, IprLicenseTypeName,
|
||||
LiaisonStatementTagName, FeedbackTypeName, LiaisonStatementState, StreamName,
|
||||
BallotPositionName, DBTemplateTypeName, NomineePositionStateName)
|
||||
|
||||
|
||||
class TimeSlotTypeNameResource(ModelResource):
|
||||
|
|
|
@ -5,8 +5,8 @@ from tastypie.constants import ALL, ALL_WITH_RELATIONS
|
|||
|
||||
from ietf import api
|
||||
|
||||
from ietf.nomcom.models import * # pyflakes:ignore
|
||||
|
||||
from ietf.nomcom.models import (NomCom, Position, Nominee, ReminderDates, NomineePosition,
|
||||
Feedback, Nomination, FeedbackLastSeen )
|
||||
|
||||
from ietf.group.resources import GroupResource
|
||||
class NomComResource(ModelResource):
|
||||
|
|
|
@ -5,7 +5,7 @@ from tastypie.constants import ALL, ALL_WITH_RELATIONS
|
|||
|
||||
from ietf import api
|
||||
|
||||
from ietf.person.models import * # pyflakes:ignore
|
||||
from ietf.person.models import Person, Email, Alias, PersonHistory
|
||||
|
||||
|
||||
from ietf.utils.resources import UserResource
|
||||
|
|
|
@ -5,7 +5,7 @@ from tastypie.constants import ALL, ALL_WITH_RELATIONS
|
|||
|
||||
from ietf import api
|
||||
|
||||
from ietf.redirects.models import * # pyflakes:ignore
|
||||
from ietf.redirects.models import Redirect, Suffix, Command
|
||||
|
||||
|
||||
class RedirectResource(ModelResource):
|
||||
|
|
|
@ -43,5 +43,5 @@ DATABASES = {
|
|||
},
|
||||
}
|
||||
|
||||
if TEST_CODE_COVERAGE_CHECKER and not TEST_CODE_COVERAGE_CHECKER._started:
|
||||
TEST_CODE_COVERAGE_CHECKER.start()
|
||||
if TEST_CODE_COVERAGE_CHECKER and not TEST_CODE_COVERAGE_CHECKER._started: # pyflakes:ignore
|
||||
TEST_CODE_COVERAGE_CHECKER.start() # pyflakes:ignore
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#
|
||||
|
||||
import os
|
||||
from settings import * # pyflakes:ignore
|
||||
from settings import * # pyflakes:ignore
|
||||
|
||||
# Workaround to avoid spending minutes stepping through the migrations in
|
||||
# every test run. The result of this is to use the 'syncdb' way of creating
|
||||
|
@ -37,7 +37,7 @@ DATABASES = {
|
|||
},
|
||||
}
|
||||
|
||||
if TEST_CODE_COVERAGE_CHECKER and not TEST_CODE_COVERAGE_CHECKER._started:
|
||||
TEST_CODE_COVERAGE_CHECKER.start()
|
||||
if TEST_CODE_COVERAGE_CHECKER and not TEST_CODE_COVERAGE_CHECKER._started: # pyflakes:ignore
|
||||
TEST_CODE_COVERAGE_CHECKER.start() # pyflakes:ignore
|
||||
|
||||
NOMCOM_PUBLIC_KEYS_DIR=os.path.abspath("tmp-nomcom-public-keys-dir")
|
||||
|
|
|
@ -5,7 +5,7 @@ from tastypie.constants import ALL, ALL_WITH_RELATIONS
|
|||
|
||||
from ietf import api
|
||||
|
||||
from ietf.submit.models import * # pyflakes:ignore
|
||||
from ietf.submit.models import Preapproval, SubmissionCheck, Submission, SubmissionEvent
|
||||
|
||||
|
||||
from ietf.person.resources import PersonResource
|
||||
|
|
|
@ -61,6 +61,8 @@ def check(codeString, filename, verbosity=1):
|
|||
# honour pyflakes:ignore comments
|
||||
messages = [message for message in w.messages
|
||||
if lines[message.lineno-1].find('pyflakes:ignore') < 0]
|
||||
# honour pyflakes:
|
||||
|
||||
messages.sort(lambda a, b: cmp(a.lineno, b.lineno))
|
||||
if verbosity > 0:
|
||||
if len(messages):
|
||||
|
|
Loading…
Reference in a new issue