3
0
Fork 0

fix: fix 'too-few-public-methods' for pylint

This commit is contained in:
Lance Edgar 2025-08-30 18:50:56 -05:00
parent 3137f0a3da
commit dfe2b94f4f
7 changed files with 12 additions and 11 deletions

View file

@ -7,6 +7,7 @@ enable=anomalous-backslash-in-string,
inconsistent-return-statements, inconsistent-return-statements,
invalid-name, invalid-name,
redefined-argument-from-local, redefined-argument-from-local,
too-few-public-methods,
unspecified-encoding, unspecified-encoding,
unused-argument, unused-argument,
unused-import, unused-import,

View file

@ -1045,7 +1045,7 @@ class AppHandler:
self.get_email_handler().send_email(*args, **kwargs) 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>`. Base class for :term:`app providers<app provider>`.

View file

@ -48,7 +48,7 @@ from sqlalchemy.ext.associationproxy import association_proxy
from . import Base, uuid_column, uuid_fk_column 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 Represents an authentication role within the system; used for
permission management. permission management.
@ -120,7 +120,7 @@ class Role(Base):
return self.name or "" return self.name or ""
class Permission(Base): class Permission(Base): # pylint: disable=too-few-public-methods
""" """
Represents a permission granted to a role. Represents a permission granted to a role.
""" """
@ -145,7 +145,7 @@ class Permission(Base):
return self.permission or "" return self.permission or ""
class User(Base): class User(Base): # pylint: disable=too-few-public-methods
""" """
Represents a user of the system. Represents a user of the system.
@ -231,7 +231,7 @@ class User(Base):
return self.username or "" 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 Represents the association between a user and a role; i.e. the
user "belongs" or "is assigned" to the role. 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 User authentication token for use with HTTP API
""" """

View file

@ -39,7 +39,7 @@ from sqlalchemy.ext.associationproxy import association_proxy
from wuttjamaican.db.util import naming_convention, ModelBase, uuid_column 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. 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) 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`. Represents a :term:`config setting`.
""" """

View file

@ -266,7 +266,7 @@ class BatchMixin:
return None return None
class BatchRowMixin: class BatchRowMixin: # pylint: disable=too-few-public-methods
""" """
Mixin base class for :term:`data models <data model>` which Mixin base class for :term:`data models <data model>` which
represent a :term:`batch row`. represent a :term:`batch row`.

View file

@ -35,7 +35,7 @@ from wuttjamaican.db.util import UUID
from wuttjamaican.util import make_true_uuid from wuttjamaican.util import make_true_uuid
class Upgrade(Base): class Upgrade(Base): # pylint: disable=too-few-public-methods
""" """
Represents an app upgrade. Represents an app upgrade.
""" """

View file

@ -41,7 +41,7 @@ from wuttjamaican.util import resource_path
log = logging.getLogger(__name__) log = logging.getLogger(__name__)
class EmailSetting: class EmailSetting: # pylint: disable=too-few-public-methods
""" """
Base class for all :term:`email settings <email setting>`. Base class for all :term:`email settings <email setting>`.