flake8 - remove unused imports and ensure they're always at the top of the file

This commit is contained in:
Leo Hemsted
2017-11-28 10:35:16 +00:00
parent 043dee5a54
commit 28d5f9b87f
22 changed files with 27 additions and 57 deletions

View File

@@ -1,7 +1,7 @@
import uuid
from datetime import datetime
from app import db, encryption
from app import db
from app.models import ApiKey
from app.dao.dao_utils import (

View File

@@ -9,7 +9,6 @@ from app.dao.date_util import get_financial_year
from app.models import (
NotificationHistory,
Rate,
Service,
NOTIFICATION_STATUS_TYPES_BILLABLE,
KEY_TYPE_TEST,
SMS_TYPE,

View File

@@ -1,10 +1,7 @@
from app import db
from werkzeug.datastructures import MultiDict
from app.dao import DAOClass
from app.models import (
Permission,
Service,
User,
MANAGE_USERS,
MANAGE_TEMPLATES,
MANAGE_SETTINGS,

View File

@@ -1,6 +1,6 @@
from app import db
from app.dao.dao_utils import transactional
from app.models import ServicePermission, SERVICE_PERMISSION_TYPES
from app.models import ServicePermission
def dao_fetch_service_permissions(service_id):

View File

@@ -1,5 +1,5 @@
from app import db
from app.models import Service, ServiceWhitelist
from app.models import ServiceWhitelist
def dao_fetch_service_whitelist(service_id):

View File

@@ -39,7 +39,6 @@ from app.models import (
SMS_TYPE,
TEMPLATE_TYPES
)
from app.service.statistics import format_monthly_template_notification_stats
from app.statsd_decorators import statsd
from app.utils import get_london_month_from_utc_column, get_london_midnight_in_utc
from app.dao.annual_billing_dao import dao_insert_annual_billing