chore(pylint): Reenable too-many-locals check (#16268)

Co-authored-by: John Bodley <john.bodley@airbnb.com>
This commit is contained in:
John Bodley 2021-08-16 09:23:40 -07:00 committed by GitHub
parent 7b724439b9
commit b5c7ed9f18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 7 additions and 7 deletions

View File

@ -87,7 +87,6 @@ disable=
import-outside-toplevel,
raise-missing-from,
too-few-public-methods,
too-many-locals,
duplicate-code,
[REPORTS]

View File

@ -120,7 +120,7 @@ class QueryContext:
df.reset_index(level=0, inplace=True)
return df
def processing_time_offsets(
def processing_time_offsets( # pylint: disable=too-many-locals
self, df: pd.DataFrame, query_object: QueryObject,
) -> CachedTimeOffset:
# ensure query_object is immutable

View File

@ -671,7 +671,7 @@ class DashboardRestApi(BaseSupersetModelRestApi):
@event_logger.log_this_with_context(
action=lambda self, *args, **kwargs: f"{self.__class__.__name__}.export",
log_to_statsd=False,
)
) # pylint: disable=too-many-locals
def export(self, **kwargs: Any) -> Response:
"""Export dashboards
---

View File

@ -56,7 +56,7 @@ def build_uuid_to_id_map(position: Dict[str, Any]) -> Dict[str, int]:
}
def update_id_refs(
def update_id_refs( # pylint: disable=too-many-locals
config: Dict[str, Any],
chart_ids: Dict[str, int],
dataset_info: Dict[str, Dict[str, Any]],

View File

@ -415,7 +415,7 @@ class DatasetRestApi(BaseSupersetModelRestApi):
@event_logger.log_this_with_context(
action=lambda self, *args, **kwargs: f"{self.__class__.__name__}.export",
log_to_statsd=False,
)
) # pylint: disable=too-many-locals
def export(self, **kwargs: Any) -> Response:
"""Export datasets
---

View File

@ -32,7 +32,7 @@ from .helpers import (
)
def load_multiformat_time_series(
def load_multiformat_time_series( # pylint: disable=too-many-locals
only_metadata: bool = False, force: bool = False
) -> None:
"""Loading time series data from a zip file in the repo"""

View File

@ -211,7 +211,7 @@ def _append_columns(
@validate_column_args("index", "columns")
def pivot( # pylint: disable=too-many-arguments
def pivot( # pylint: disable=too-many-arguments,too-many-locals
df: DataFrame,
index: List[str],
aggregates: Dict[str, Dict[str, Any]],

View File

@ -21,6 +21,7 @@ from unittest import mock
from werkzeug.wrappers import Request, Response
try:
# pylint: disable=import-error
from pyinstrument import Profiler
except ModuleNotFoundError:
Profiler = None