3
0
Fork 0

fix: fix 'unused-import' for pylint

This commit is contained in:
Lance Edgar 2025-08-31 20:53:12 -05:00
parent c1a14b4869
commit 8987197856
10 changed files with 8 additions and 15 deletions

View file

@ -10,3 +10,4 @@ enable=
too-many-branches, too-many-branches,
too-many-instance-attributes, too-many-instance-attributes,
too-many-return-statements, too-many-return-statements,
unused-import,

View file

@ -24,8 +24,6 @@
Auth Utility Logic Auth Utility Logic
""" """
import re
from pyramid.authentication import SessionAuthenticationHelper from pyramid.authentication import SessionAuthenticationHelper
from pyramid.request import RequestLocalCache from pyramid.request import RequestLocalCache
from pyramid.security import remember, forget from pyramid.security import remember, forget

View file

@ -30,7 +30,6 @@ import uuid as _uuid
import colander import colander
import sqlalchemy as sa import sqlalchemy as sa
from wuttjamaican.db.model import Person
from wuttjamaican.conf import parse_list from wuttjamaican.conf import parse_list
from wuttaweb.db import Session from wuttaweb.db import Session

View file

@ -47,7 +47,7 @@ import os
import colander import colander
import humanize import humanize
from deform.widget import ( from deform.widget import ( # pylint: disable=unused-import
Widget, Widget,
TextInputWidget, TextInputWidget,
TextAreaWidget, TextAreaWidget,
@ -64,8 +64,6 @@ from webhelpers2.html import HTML
from wuttjamaican.conf import parse_list from wuttjamaican.conf import parse_list
from wuttaweb.db import Session
class ObjectRefWidget(SelectWidget): class ObjectRefWidget(SelectWidget):
""" """

View file

@ -25,7 +25,6 @@ Base grid classes
""" """
import functools import functools
import json
import logging import logging
import warnings import warnings
from collections import namedtuple, OrderedDict from collections import namedtuple, OrderedDict
@ -38,9 +37,7 @@ from paginate_sqlalchemy import SqlalchemyOrmPage
from pyramid.renderers import render from pyramid.renderers import render
from webhelpers2.html import HTML from webhelpers2.html import HTML
from wuttaweb.db import Session
from wuttaweb.util import FieldList, get_model_fields, make_json_safe from wuttaweb.util import FieldList, get_model_fields, make_json_safe
from wuttjamaican.util import UNSPECIFIED
from wuttjamaican.db.util import UUID from wuttjamaican.db.util import UUID
from wuttaweb.grids.filters import default_sqlalchemy_filters, VerbNotSupported from wuttaweb.grids.filters import default_sqlalchemy_filters, VerbNotSupported

View file

@ -54,4 +54,8 @@ This module contains the following references:
from webhelpers2.html import * from webhelpers2.html import *
from webhelpers2.html.tags 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,
)

View file

@ -39,7 +39,6 @@ from pyramid.renderers import get_renderer
from webhelpers2.html import HTML, tags from webhelpers2.html import HTML, tags
from wuttjamaican.util import resource_path from wuttjamaican.util import resource_path
from wuttaweb.db import Session
log = logging.getLogger(__name__) log = logging.getLogger(__name__)

View file

@ -27,7 +27,6 @@ Common Views
import logging import logging
import colander import colander
from pyramid.renderers import render
from wuttaweb.views import View from wuttaweb.views import View
from wuttaweb.forms import widgets from wuttaweb.forms import widgets

View file

@ -35,7 +35,7 @@ from pyramid.renderers import render_to_response
from webhelpers2.html import HTML from webhelpers2.html import HTML
from wuttaweb.views import View 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.db import Session
from wuttaweb.progress import SessionProgress from wuttaweb.progress import SessionProgress
from wuttjamaican.util import get_class_hierarchy from wuttjamaican.util import get_class_hierarchy

View file

@ -24,8 +24,6 @@
Views for users Views for users
""" """
import colander
from wuttjamaican.db.model import User from wuttjamaican.db.model import User
from wuttaweb.views import MasterView from wuttaweb.views import MasterView
from wuttaweb.forms import widgets from wuttaweb.forms import widgets