diff --git a/setup.cfg b/setup.cfg index 2a467c6..c3342a7 100644 --- a/setup.cfg +++ b/setup.cfg @@ -259,6 +259,8 @@ disable = undefined-variable, unused-import, unused-variable, # wemake-python-styleguide redefined-outer-name, + # A lot of classes in the test suite and `Meta` classes cause complaints. + too-few-public-methods, [pylint.REPORTS] score = no diff --git a/src/urban_meal_delivery/configuration.py b/src/urban_meal_delivery/configuration.py index 72c10d3..d20320a 100644 --- a/src/urban_meal_delivery/configuration.py +++ b/src/urban_meal_delivery/configuration.py @@ -26,8 +26,6 @@ def random_schema_name() -> str: class Config: """Configuration that applies in all situations.""" - # pylint:disable=too-few-public-methods - CUTOFF_DAY = datetime.datetime(2017, 2, 1) # If a scheduled pre-order is made within this @@ -53,16 +51,12 @@ class Config: class ProductionConfig(Config): """Configuration for the real dataset.""" - # pylint:disable=too-few-public-methods - TESTING = False class TestingConfig(Config): """Configuration for the test suite.""" - # pylint:disable=too-few-public-methods - TESTING = True DATABASE_URI = os.getenv('DATABASE_URI_TESTING') or Config.DATABASE_URI diff --git a/src/urban_meal_delivery/db/couriers.py b/src/urban_meal_delivery/db/couriers.py index be065a5..9087982 100644 --- a/src/urban_meal_delivery/db/couriers.py +++ b/src/urban_meal_delivery/db/couriers.py @@ -10,8 +10,6 @@ from urban_meal_delivery.db import meta class Courier(meta.Base): """A Courier working for the UDP.""" - # pylint:disable=too-few-public-methods - __tablename__ = 'couriers' # Columns diff --git a/src/urban_meal_delivery/db/customers.py b/src/urban_meal_delivery/db/customers.py index e96361a..451ec92 100644 --- a/src/urban_meal_delivery/db/customers.py +++ b/src/urban_meal_delivery/db/customers.py @@ -9,8 +9,6 @@ from urban_meal_delivery.db import meta class Customer(meta.Base): """A Customer of the UDP.""" - # pylint:disable=too-few-public-methods - __tablename__ = 'customers' # Columns diff --git a/src/urban_meal_delivery/db/restaurants.py b/src/urban_meal_delivery/db/restaurants.py index 4531d09..f31d7af 100644 --- a/src/urban_meal_delivery/db/restaurants.py +++ b/src/urban_meal_delivery/db/restaurants.py @@ -9,8 +9,6 @@ from urban_meal_delivery.db import meta class Restaurant(meta.Base): """A Restaurant selling meals on the UDP.""" - # pylint:disable=too-few-public-methods - __tablename__ = 'restaurants' # Columns