mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
chore: move some rules from ruff -> pylint (#34292)
This commit is contained in:
committed by
GitHub
parent
efa8cb6fa4
commit
3f8472ca7b
@@ -34,15 +34,15 @@ from superset.utils.database import get_example_database
|
||||
from tests.integration_tests.base_tests import SupersetTestCase
|
||||
from tests.integration_tests.test_app import app
|
||||
|
||||
from ..fixtures.birth_names_dashboard import (
|
||||
from ..fixtures.birth_names_dashboard import ( # noqa: TID252
|
||||
load_birth_names_dashboard_with_slices, # noqa: F401
|
||||
load_birth_names_data, # noqa: F401
|
||||
)
|
||||
from ..fixtures.energy_dashboard import (
|
||||
from ..fixtures.energy_dashboard import ( # noqa: TID252
|
||||
load_energy_table_data, # noqa: F401
|
||||
load_energy_table_with_slice, # noqa: F401
|
||||
)
|
||||
from ..fixtures.pyodbcRow import Row
|
||||
from ..fixtures.pyodbcRow import Row # noqa: TID252
|
||||
|
||||
|
||||
class SupersetTestCases(SupersetTestCase):
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
import json
|
||||
import json # noqa: TID251
|
||||
|
||||
import pytest
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
import json
|
||||
import json # noqa: TID251
|
||||
from collections.abc import Iterator
|
||||
from typing import Any
|
||||
from uuid import uuid3
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
# under the License.
|
||||
|
||||
import copy
|
||||
import json
|
||||
import json # noqa: TID251
|
||||
from typing import Any
|
||||
|
||||
from pytest_mock import MockerFixture
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import json
|
||||
import json # noqa: TID251
|
||||
from datetime import datetime
|
||||
from unittest.mock import patch
|
||||
from uuid import UUID
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import json
|
||||
import json # noqa: TID251
|
||||
from textwrap import dedent
|
||||
from typing import Any
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import json
|
||||
import json # noqa: TID251
|
||||
|
||||
import pytest
|
||||
from pytest_mock import MockerFixture
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
# pylint: disable=invalid-name, unused-argument, redefined-outer-name
|
||||
|
||||
import json
|
||||
import json # noqa: TID251
|
||||
|
||||
import pytest
|
||||
from flask_appbuilder.security.sqla.models import Role, User
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
# under the License.
|
||||
# pylint: disable=import-outside-toplevel, invalid-name, unused-argument, too-many-locals
|
||||
|
||||
import json
|
||||
import json # noqa: TID251
|
||||
from unittest import mock
|
||||
from uuid import UUID
|
||||
|
||||
|
||||
Reference in New Issue
Block a user