From fdb62e9865104f2729f13db879675a2c932bbef8 Mon Sep 17 00:00:00 2001 From: John Bodley <4567245+john-bodley@users.noreply.github.com> Date: Mon, 5 Aug 2019 15:01:33 -0700 Subject: [PATCH] [flake8] Ignoring I202 (#7988) --- superset/connectors/druid/models.py | 1 - superset/security.py | 2 +- superset/utils/core.py | 1 - tests/druid_tests.py | 1 - tox.ini | 4 ++-- 5 files changed, 3 insertions(+), 6 deletions(-) diff --git a/superset/connectors/druid/models.py b/superset/connectors/druid/models.py index 9f37237cf..4eb38dc9a 100644 --- a/superset/connectors/druid/models.py +++ b/superset/connectors/druid/models.py @@ -16,7 +16,6 @@ # under the License. # pylint: disable=C,R,W # pylint: disable=invalid-unary-operand-type -# flake8: noqa I202 from collections import OrderedDict from copy import deepcopy from datetime import datetime, timedelta diff --git a/superset/security.py b/superset/security.py index 88adc82d6..bea15715b 100644 --- a/superset/security.py +++ b/superset/security.py @@ -41,7 +41,7 @@ from superset.exceptions import SupersetSecurityException if TYPE_CHECKING: from superset.models.core import Database, BaseDatasource -from superset.utils.core import DatasourceName # noqa: I202 +from superset.utils.core import DatasourceName # noqa: E402 class SupersetSecurityListWidget(ListWidget): diff --git a/superset/utils/core.py b/superset/utils/core.py index eb43e3abe..69c70f575 100644 --- a/superset/utils/core.py +++ b/superset/utils/core.py @@ -15,7 +15,6 @@ # specific language governing permissions and limitations # under the License. # pylint: disable=C,R,W -# flake8: noqa I202 """Utility functions used across Superset""" from datetime import date, datetime, time, timedelta import decimal diff --git a/tests/druid_tests.py b/tests/druid_tests.py index e27597391..d2f231ebb 100644 --- a/tests/druid_tests.py +++ b/tests/druid_tests.py @@ -14,7 +14,6 @@ # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. -# flake8: noqa I202 """Unit tests for Superset""" from datetime import datetime import json diff --git a/tox.ini b/tox.ini index e79e1bbc9..c5d2cf8ee 100644 --- a/tox.ini +++ b/tox.ini @@ -28,6 +28,7 @@ exclude = ignore = E203 E501 + I202 W503 W605 import-order-style = google @@ -55,7 +56,7 @@ whitelist_externals = [testenv:black] commands = black --check setup.py superset tests -deps = +deps = -rrequirements-dev.txt [testenv:cypress-dashboard] @@ -154,4 +155,3 @@ envlist = pylint license-check skipsdist = true -