fix: fix 'unused-import' for pylint
This commit is contained in:
parent
c1a14b4869
commit
8987197856
10 changed files with 8 additions and 15 deletions
|
@ -10,3 +10,4 @@ enable=
|
|||
too-many-branches,
|
||||
too-many-instance-attributes,
|
||||
too-many-return-statements,
|
||||
unused-import,
|
||||
|
|
|
@ -24,8 +24,6 @@
|
|||
Auth Utility Logic
|
||||
"""
|
||||
|
||||
import re
|
||||
|
||||
from pyramid.authentication import SessionAuthenticationHelper
|
||||
from pyramid.request import RequestLocalCache
|
||||
from pyramid.security import remember, forget
|
||||
|
|
|
@ -30,7 +30,6 @@ import uuid as _uuid
|
|||
import colander
|
||||
import sqlalchemy as sa
|
||||
|
||||
from wuttjamaican.db.model import Person
|
||||
from wuttjamaican.conf import parse_list
|
||||
|
||||
from wuttaweb.db import Session
|
||||
|
|
|
@ -47,7 +47,7 @@ import os
|
|||
|
||||
import colander
|
||||
import humanize
|
||||
from deform.widget import (
|
||||
from deform.widget import ( # pylint: disable=unused-import
|
||||
Widget,
|
||||
TextInputWidget,
|
||||
TextAreaWidget,
|
||||
|
@ -64,8 +64,6 @@ from webhelpers2.html import HTML
|
|||
|
||||
from wuttjamaican.conf import parse_list
|
||||
|
||||
from wuttaweb.db import Session
|
||||
|
||||
|
||||
class ObjectRefWidget(SelectWidget):
|
||||
"""
|
||||
|
|
|
@ -25,7 +25,6 @@ Base grid classes
|
|||
"""
|
||||
|
||||
import functools
|
||||
import json
|
||||
import logging
|
||||
import warnings
|
||||
from collections import namedtuple, OrderedDict
|
||||
|
@ -38,9 +37,7 @@ from paginate_sqlalchemy import SqlalchemyOrmPage
|
|||
from pyramid.renderers import render
|
||||
from webhelpers2.html import HTML
|
||||
|
||||
from wuttaweb.db import Session
|
||||
from wuttaweb.util import FieldList, get_model_fields, make_json_safe
|
||||
from wuttjamaican.util import UNSPECIFIED
|
||||
from wuttjamaican.db.util import UUID
|
||||
from wuttaweb.grids.filters import default_sqlalchemy_filters, VerbNotSupported
|
||||
|
||||
|
|
|
@ -54,4 +54,8 @@ This module contains the following references:
|
|||
from webhelpers2.html import *
|
||||
from webhelpers2.html.tags import *
|
||||
|
||||
from wuttaweb.util import get_liburl, get_csrf_token, render_csrf_token as csrf_token
|
||||
from wuttaweb.util import ( # pylint: disable=unused-import
|
||||
get_liburl,
|
||||
get_csrf_token,
|
||||
render_csrf_token as csrf_token,
|
||||
)
|
||||
|
|
|
@ -39,7 +39,6 @@ from pyramid.renderers import get_renderer
|
|||
from webhelpers2.html import HTML, tags
|
||||
|
||||
from wuttjamaican.util import resource_path
|
||||
from wuttaweb.db import Session
|
||||
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
|
|
@ -27,7 +27,6 @@ Common Views
|
|||
import logging
|
||||
|
||||
import colander
|
||||
from pyramid.renderers import render
|
||||
|
||||
from wuttaweb.views import View
|
||||
from wuttaweb.forms import widgets
|
||||
|
|
|
@ -35,7 +35,7 @@ from pyramid.renderers import render_to_response
|
|||
from webhelpers2.html import HTML
|
||||
|
||||
from wuttaweb.views import View
|
||||
from wuttaweb.util import get_form_data, get_model_fields, render_csrf_token
|
||||
from wuttaweb.util import get_form_data, render_csrf_token
|
||||
from wuttaweb.db import Session
|
||||
from wuttaweb.progress import SessionProgress
|
||||
from wuttjamaican.util import get_class_hierarchy
|
||||
|
|
|
@ -24,8 +24,6 @@
|
|||
Views for users
|
||||
"""
|
||||
|
||||
import colander
|
||||
|
||||
from wuttjamaican.db.model import User
|
||||
from wuttaweb.views import MasterView
|
||||
from wuttaweb.forms import widgets
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue