fix: fix 'too-few-public-methods' for pylint
This commit is contained in:
parent
3137f0a3da
commit
dfe2b94f4f
7 changed files with 12 additions and 11 deletions
|
@ -7,6 +7,7 @@ enable=anomalous-backslash-in-string,
|
|||
inconsistent-return-statements,
|
||||
invalid-name,
|
||||
redefined-argument-from-local,
|
||||
too-few-public-methods,
|
||||
unspecified-encoding,
|
||||
unused-argument,
|
||||
unused-import,
|
||||
|
|
|
@ -1045,7 +1045,7 @@ class AppHandler:
|
|||
self.get_email_handler().send_email(*args, **kwargs)
|
||||
|
||||
|
||||
class AppProvider:
|
||||
class AppProvider: # pylint: disable=too-few-public-methods
|
||||
"""
|
||||
Base class for :term:`app providers<app provider>`.
|
||||
|
||||
|
|
|
@ -48,7 +48,7 @@ from sqlalchemy.ext.associationproxy import association_proxy
|
|||
from . import Base, uuid_column, uuid_fk_column
|
||||
|
||||
|
||||
class Role(Base):
|
||||
class Role(Base): # pylint: disable=too-few-public-methods
|
||||
"""
|
||||
Represents an authentication role within the system; used for
|
||||
permission management.
|
||||
|
@ -120,7 +120,7 @@ class Role(Base):
|
|||
return self.name or ""
|
||||
|
||||
|
||||
class Permission(Base):
|
||||
class Permission(Base): # pylint: disable=too-few-public-methods
|
||||
"""
|
||||
Represents a permission granted to a role.
|
||||
"""
|
||||
|
@ -145,7 +145,7 @@ class Permission(Base):
|
|||
return self.permission or ""
|
||||
|
||||
|
||||
class User(Base):
|
||||
class User(Base): # pylint: disable=too-few-public-methods
|
||||
"""
|
||||
Represents a user of the system.
|
||||
|
||||
|
@ -231,7 +231,7 @@ class User(Base):
|
|||
return self.username or ""
|
||||
|
||||
|
||||
class UserRole(Base):
|
||||
class UserRole(Base): # pylint: disable=too-few-public-methods
|
||||
"""
|
||||
Represents the association between a user and a role; i.e. the
|
||||
user "belongs" or "is assigned" to the role.
|
||||
|
@ -260,7 +260,7 @@ class UserRole(Base):
|
|||
""")
|
||||
|
||||
|
||||
class UserAPIToken(Base):
|
||||
class UserAPIToken(Base): # pylint: disable=too-few-public-methods
|
||||
"""
|
||||
User authentication token for use with HTTP API
|
||||
"""
|
||||
|
|
|
@ -39,7 +39,7 @@ from sqlalchemy.ext.associationproxy import association_proxy
|
|||
from wuttjamaican.db.util import naming_convention, ModelBase, uuid_column
|
||||
|
||||
|
||||
class WuttaModelBase(ModelBase):
|
||||
class WuttaModelBase(ModelBase): # pylint: disable=too-few-public-methods
|
||||
"""
|
||||
Base class for data models, from which :class:`Base` inherits.
|
||||
|
||||
|
@ -123,7 +123,7 @@ metadata = sa.MetaData(naming_convention=naming_convention)
|
|||
Base = orm.declarative_base(metadata=metadata, cls=WuttaModelBase)
|
||||
|
||||
|
||||
class Setting(Base):
|
||||
class Setting(Base): # pylint: disable=too-few-public-methods
|
||||
"""
|
||||
Represents a :term:`config setting`.
|
||||
"""
|
||||
|
|
|
@ -266,7 +266,7 @@ class BatchMixin:
|
|||
return None
|
||||
|
||||
|
||||
class BatchRowMixin:
|
||||
class BatchRowMixin: # pylint: disable=too-few-public-methods
|
||||
"""
|
||||
Mixin base class for :term:`data models <data model>` which
|
||||
represent a :term:`batch row`.
|
||||
|
|
|
@ -35,7 +35,7 @@ from wuttjamaican.db.util import UUID
|
|||
from wuttjamaican.util import make_true_uuid
|
||||
|
||||
|
||||
class Upgrade(Base):
|
||||
class Upgrade(Base): # pylint: disable=too-few-public-methods
|
||||
"""
|
||||
Represents an app upgrade.
|
||||
"""
|
||||
|
|
|
@ -41,7 +41,7 @@ from wuttjamaican.util import resource_path
|
|||
log = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class EmailSetting:
|
||||
class EmailSetting: # pylint: disable=too-few-public-methods
|
||||
"""
|
||||
Base class for all :term:`email settings <email setting>`.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue