fix: fix 'too-few-public-methods' for pylint
This commit is contained in:
parent
a4c9e3070c
commit
e884263779
4 changed files with 15 additions and 10 deletions
|
@ -22,4 +22,3 @@ disable=fixme,
|
||||||
no-self-argument,
|
no-self-argument,
|
||||||
redefined-outer-name,
|
redefined-outer-name,
|
||||||
singleton-comparison,
|
singleton-comparison,
|
||||||
too-few-public-methods,
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
################################################################################
|
################################################################################
|
||||||
#
|
#
|
||||||
# Sideshow -- Case/Special Order Tracker
|
# Sideshow -- Case/Special Order Tracker
|
||||||
# Copyright © 2024 Lance Edgar
|
# Copyright © 2024-2025 Lance Edgar
|
||||||
#
|
#
|
||||||
# This file is part of Sideshow.
|
# This file is part of Sideshow.
|
||||||
#
|
#
|
||||||
|
@ -34,7 +34,7 @@ from wuttjamaican.db import model
|
||||||
from sideshow.enum import PendingCustomerStatus
|
from sideshow.enum import PendingCustomerStatus
|
||||||
|
|
||||||
|
|
||||||
class CustomerMixin:
|
class CustomerMixin: # pylint: disable=too-few-public-methods
|
||||||
"""
|
"""
|
||||||
Base class for customer tables. This has shared columns, used by e.g.:
|
Base class for customer tables. This has shared columns, used by e.g.:
|
||||||
|
|
||||||
|
@ -86,7 +86,9 @@ class CustomerMixin:
|
||||||
return self.full_name or ""
|
return self.full_name or ""
|
||||||
|
|
||||||
|
|
||||||
class LocalCustomer(CustomerMixin, model.Base):
|
class LocalCustomer( # pylint: disable=too-few-public-methods
|
||||||
|
CustomerMixin, model.Base
|
||||||
|
):
|
||||||
"""
|
"""
|
||||||
This table contains the :term:`local customer` records.
|
This table contains the :term:`local customer` records.
|
||||||
|
|
||||||
|
@ -136,7 +138,9 @@ class LocalCustomer(CustomerMixin, model.Base):
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
class PendingCustomer(CustomerMixin, model.Base):
|
class PendingCustomer( # pylint: disable=too-few-public-methods
|
||||||
|
CustomerMixin, model.Base
|
||||||
|
):
|
||||||
"""
|
"""
|
||||||
This table contains the :term:`pending customer` records, used
|
This table contains the :term:`pending customer` records, used
|
||||||
when creating an :term:`order` for new/unknown customer.
|
when creating an :term:`order` for new/unknown customer.
|
||||||
|
|
|
@ -33,7 +33,7 @@ from sqlalchemy.ext.orderinglist import ordering_list
|
||||||
from wuttjamaican.db import model
|
from wuttjamaican.db import model
|
||||||
|
|
||||||
|
|
||||||
class Order(model.Base):
|
class Order(model.Base): # pylint: disable=too-few-public-methods
|
||||||
"""
|
"""
|
||||||
Represents an :term:`order` for a customer. Each order has one or
|
Represents an :term:`order` for a customer. Each order has one or
|
||||||
more :attr:`items`.
|
more :attr:`items`.
|
||||||
|
@ -542,7 +542,7 @@ class OrderItem(model.Base):
|
||||||
self.events.append(OrderItemEvent(**kwargs))
|
self.events.append(OrderItemEvent(**kwargs))
|
||||||
|
|
||||||
|
|
||||||
class OrderItemEvent(model.Base):
|
class OrderItemEvent(model.Base): # pylint: disable=too-few-public-methods
|
||||||
"""
|
"""
|
||||||
An event in the life of an :term:`order item`.
|
An event in the life of an :term:`order item`.
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
################################################################################
|
################################################################################
|
||||||
#
|
#
|
||||||
# Sideshow -- Case/Special Order Tracker
|
# Sideshow -- Case/Special Order Tracker
|
||||||
# Copyright © 2024 Lance Edgar
|
# Copyright © 2024-2025 Lance Edgar
|
||||||
#
|
#
|
||||||
# This file is part of Sideshow.
|
# This file is part of Sideshow.
|
||||||
#
|
#
|
||||||
|
@ -179,7 +179,7 @@ class ProductMixin:
|
||||||
return self.full_description
|
return self.full_description
|
||||||
|
|
||||||
|
|
||||||
class LocalProduct(ProductMixin, model.Base):
|
class LocalProduct(ProductMixin, model.Base): # pylint: disable=too-few-public-methods
|
||||||
"""
|
"""
|
||||||
This table contains the :term:`local product` records.
|
This table contains the :term:`local product` records.
|
||||||
|
|
||||||
|
@ -228,7 +228,9 @@ class LocalProduct(ProductMixin, model.Base):
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
class PendingProduct(ProductMixin, model.Base):
|
class PendingProduct( # pylint: disable=too-few-public-methods
|
||||||
|
ProductMixin, model.Base
|
||||||
|
):
|
||||||
"""
|
"""
|
||||||
This table contains the :term:`pending product` records, used when
|
This table contains the :term:`pending product` records, used when
|
||||||
creating an :term:`order` for new/unknown product(s).
|
creating an :term:`order` for new/unknown product(s).
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue