diff --git a/.pylintrc b/.pylintrc index 0de47845e..64ecf9b9c 100644 --- a/.pylintrc +++ b/.pylintrc @@ -84,7 +84,6 @@ enable= # --disable=W" disable= missing-docstring, - too-many-lines, duplicate-code, unspecified-encoding, # re-enable once this no longer raises false positives diff --git a/superset/charts/api.py b/superset/charts/api.py index 7a21fe267..07fe642fb 100644 --- a/superset/charts/api.py +++ b/superset/charts/api.py @@ -14,6 +14,7 @@ # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. +# pylint: disable=too-many-lines import json import logging from datetime import datetime diff --git a/superset/charts/schemas.py b/superset/charts/schemas.py index 9916c0b22..ca84ff411 100644 --- a/superset/charts/schemas.py +++ b/superset/charts/schemas.py @@ -14,6 +14,7 @@ # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. +# pylint: disable=too-many-lines from typing import Any, Dict from flask_babel import gettext as _ diff --git a/superset/config.py b/superset/config.py index c4b3a661a..36c6e04a6 100644 --- a/superset/config.py +++ b/superset/config.py @@ -20,6 +20,7 @@ All configuration in this file can be overridden by providing a superset_config in your PYTHONPATH as there is a ``from superset_config import *`` at the end of this file. """ +# pylint: disable=too-many-lines import imp # pylint: disable=deprecated-module import importlib.util import json diff --git a/superset/connectors/sqla/models.py b/superset/connectors/sqla/models.py index a64b80d80..f6c5e43d8 100644 --- a/superset/connectors/sqla/models.py +++ b/superset/connectors/sqla/models.py @@ -14,6 +14,7 @@ # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. +# pylint: disable=too-many-lines import dataclasses import json import logging diff --git a/superset/databases/api.py b/superset/databases/api.py index 712540c2e..8ed2d0735 100644 --- a/superset/databases/api.py +++ b/superset/databases/api.py @@ -14,6 +14,7 @@ # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. +# pylint: disable=too-many-lines import json import logging from datetime import datetime diff --git a/superset/db_engine_specs/base.py b/superset/db_engine_specs/base.py index 07aeb7121..fce4d68bc 100644 --- a/superset/db_engine_specs/base.py +++ b/superset/db_engine_specs/base.py @@ -14,7 +14,7 @@ # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. -# pylint: disable=unused-argument +# pylint: disable=too-many-lines,unused-argument import json import logging import re diff --git a/superset/db_engine_specs/presto.py b/superset/db_engine_specs/presto.py index 7e3665d7b..783dde753 100644 --- a/superset/db_engine_specs/presto.py +++ b/superset/db_engine_specs/presto.py @@ -14,6 +14,7 @@ # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. +# pylint: disable=too-many-lines import logging import re import textwrap diff --git a/superset/examples/countries.py b/superset/examples/countries.py index 97238d8c7..8f1d5466a 100644 --- a/superset/examples/countries.py +++ b/superset/examples/countries.py @@ -15,6 +15,7 @@ # specific language governing permissions and limitations # under the License. """This module contains data related to countries and is used for geo mapping""" +# pylint: disable=too-many-lines from typing import Any, Dict, List, Optional countries: List[Dict[str, Any]] = [ diff --git a/superset/security/manager.py b/superset/security/manager.py index 75a83973a..4340a4f65 100644 --- a/superset/security/manager.py +++ b/superset/security/manager.py @@ -14,7 +14,7 @@ # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. -# pylint: disable=too-few-public-methods +# pylint: disable=too-few-public-methods,too-many-lines """A set of constants and methods to manage permissions and security""" import logging import re diff --git a/superset/utils/core.py b/superset/utils/core.py index 646b04c02..a0647b6dc 100644 --- a/superset/utils/core.py +++ b/superset/utils/core.py @@ -15,6 +15,7 @@ # specific language governing permissions and limitations # under the License. """Utility functions used across Superset""" +# pylint: disable=too-many-lines import collections import decimal import errno diff --git a/superset/views/core.py b/superset/views/core.py index 043340033..962cc8150 100755 --- a/superset/views/core.py +++ b/superset/views/core.py @@ -14,7 +14,7 @@ # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. -# pylint: disable=comparison-with-callable, line-too-long +# pylint: disable=comparison-with-callable,line-too-long,too-many-lines from __future__ import annotations import logging diff --git a/superset/viz.py b/superset/viz.py index 02f65df3f..82e74064e 100644 --- a/superset/viz.py +++ b/superset/viz.py @@ -14,7 +14,7 @@ # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. -# pylint: disable=C,R,W,useless-suppression +# pylint: disable=C,R,W,too-many-lines,useless-suppression """This module contains the 'Viz' objects These objects represent the backend of all the visualizations that