chore(pylint): Reenable too-few-public-methods check (#16264)

Co-authored-by: John Bodley <john.bodley@airbnb.com>
This commit is contained in:
John Bodley 2021-08-16 10:20:44 -07:00 committed by GitHub
parent 0df15bf207
commit 36bc7b0b80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 9 additions and 8 deletions

View File

@ -85,7 +85,6 @@ disable=
missing-docstring,
too-many-lines,
raise-missing-from,
too-few-public-methods,
duplicate-code,
[REPORTS]

View File

@ -43,7 +43,7 @@ class BaseCommand(ABC):
"""
class CreateMixin:
class CreateMixin: # pylint: disable=too-few-public-methods
@staticmethod
def populate_owners(
user: User, owner_ids: Optional[List[int]] = None
@ -61,7 +61,7 @@ class CreateMixin:
return populate_owners(user, owner_ids, default_to_user=True)
class UpdateMixin:
class UpdateMixin: # pylint: disable=too-few-public-methods
@staticmethod
def populate_owners(
user: User, owner_ids: Optional[List[int]] = None

View File

@ -214,7 +214,7 @@ def extra_validator(value: str) -> str:
return value
class DatabaseParametersSchemaMixin:
class DatabaseParametersSchemaMixin: # pylint: disable=too-few-public-methods
"""
Allow SQLAlchemy URI to be passed as separate parameters.

View File

@ -98,7 +98,7 @@ class UIManifestProcessor:
return self.manifest.get(bundle, {}).get(asset_type, [])
class ProfilingExtension:
class ProfilingExtension: # pylint: disable=too-few-public-methods
def __init__(self, interval: float = 1e-4) -> None:
self.interval = interval

View File

@ -22,7 +22,7 @@ from sqlalchemy import TypeDecorator
from sqlalchemy_utils import EncryptedType
class AbstractEncryptedFieldAdapter(ABC):
class AbstractEncryptedFieldAdapter(ABC): # pylint: disable=too-few-public-methods
@abstractmethod
def create(
self,
@ -33,7 +33,9 @@ class AbstractEncryptedFieldAdapter(ABC):
pass
class SQLAlchemyUtilsAdapter(AbstractEncryptedFieldAdapter):
class SQLAlchemyUtilsAdapter( # pylint: disable=too-few-public-methods
AbstractEncryptedFieldAdapter
):
def create(
self,
app_config: Optional[Dict[str, Any]],

View File

@ -27,7 +27,7 @@ except ModuleNotFoundError:
Profiler = None
class SupersetProfiler:
class SupersetProfiler: # pylint: disable=too-few-public-methods
"""
WSGI middleware to instrument Superset.