Disable too-few-public-methods error in pylint
This commit is contained in:
parent
2ddd430534
commit
3e0300cb0e
5 changed files with 2 additions and 12 deletions
|
@ -259,6 +259,8 @@ disable =
|
||||||
undefined-variable, unused-import, unused-variable,
|
undefined-variable, unused-import, unused-variable,
|
||||||
# wemake-python-styleguide
|
# wemake-python-styleguide
|
||||||
redefined-outer-name,
|
redefined-outer-name,
|
||||||
|
# A lot of classes in the test suite and `Meta` classes cause complaints.
|
||||||
|
too-few-public-methods,
|
||||||
|
|
||||||
[pylint.REPORTS]
|
[pylint.REPORTS]
|
||||||
score = no
|
score = no
|
||||||
|
|
|
@ -26,8 +26,6 @@ def random_schema_name() -> str:
|
||||||
class Config:
|
class Config:
|
||||||
"""Configuration that applies in all situations."""
|
"""Configuration that applies in all situations."""
|
||||||
|
|
||||||
# pylint:disable=too-few-public-methods
|
|
||||||
|
|
||||||
CUTOFF_DAY = datetime.datetime(2017, 2, 1)
|
CUTOFF_DAY = datetime.datetime(2017, 2, 1)
|
||||||
|
|
||||||
# If a scheduled pre-order is made within this
|
# If a scheduled pre-order is made within this
|
||||||
|
@ -53,16 +51,12 @@ class Config:
|
||||||
class ProductionConfig(Config):
|
class ProductionConfig(Config):
|
||||||
"""Configuration for the real dataset."""
|
"""Configuration for the real dataset."""
|
||||||
|
|
||||||
# pylint:disable=too-few-public-methods
|
|
||||||
|
|
||||||
TESTING = False
|
TESTING = False
|
||||||
|
|
||||||
|
|
||||||
class TestingConfig(Config):
|
class TestingConfig(Config):
|
||||||
"""Configuration for the test suite."""
|
"""Configuration for the test suite."""
|
||||||
|
|
||||||
# pylint:disable=too-few-public-methods
|
|
||||||
|
|
||||||
TESTING = True
|
TESTING = True
|
||||||
|
|
||||||
DATABASE_URI = os.getenv('DATABASE_URI_TESTING') or Config.DATABASE_URI
|
DATABASE_URI = os.getenv('DATABASE_URI_TESTING') or Config.DATABASE_URI
|
||||||
|
|
|
@ -10,8 +10,6 @@ from urban_meal_delivery.db import meta
|
||||||
class Courier(meta.Base):
|
class Courier(meta.Base):
|
||||||
"""A Courier working for the UDP."""
|
"""A Courier working for the UDP."""
|
||||||
|
|
||||||
# pylint:disable=too-few-public-methods
|
|
||||||
|
|
||||||
__tablename__ = 'couriers'
|
__tablename__ = 'couriers'
|
||||||
|
|
||||||
# Columns
|
# Columns
|
||||||
|
|
|
@ -9,8 +9,6 @@ from urban_meal_delivery.db import meta
|
||||||
class Customer(meta.Base):
|
class Customer(meta.Base):
|
||||||
"""A Customer of the UDP."""
|
"""A Customer of the UDP."""
|
||||||
|
|
||||||
# pylint:disable=too-few-public-methods
|
|
||||||
|
|
||||||
__tablename__ = 'customers'
|
__tablename__ = 'customers'
|
||||||
|
|
||||||
# Columns
|
# Columns
|
||||||
|
|
|
@ -9,8 +9,6 @@ from urban_meal_delivery.db import meta
|
||||||
class Restaurant(meta.Base):
|
class Restaurant(meta.Base):
|
||||||
"""A Restaurant selling meals on the UDP."""
|
"""A Restaurant selling meals on the UDP."""
|
||||||
|
|
||||||
# pylint:disable=too-few-public-methods
|
|
||||||
|
|
||||||
__tablename__ = 'restaurants'
|
__tablename__ = 'restaurants'
|
||||||
|
|
||||||
# Columns
|
# Columns
|
||||||
|
|
Loading…
Reference in a new issue