mirror of
https://github.com/apache/superset.git
synced 2026-04-20 16:44:46 +00:00
chore: set up ruff as a new linter/formatter (#28158)
This commit is contained in:
committed by
GitHub
parent
e8a678b75a
commit
2d63722150
@@ -19,10 +19,10 @@ from typing import Any, Optional
|
||||
from unittest.mock import MagicMock
|
||||
|
||||
import pytest
|
||||
from sqlalchemy import column
|
||||
from sqlalchemy import column # noqa: F401
|
||||
|
||||
from tests.unit_tests.db_engine_specs.utils import assert_convert_dttm
|
||||
from tests.unit_tests.fixtures.common import dttm
|
||||
from tests.unit_tests.fixtures.common import dttm # noqa: F401
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
@@ -51,7 +51,7 @@ def test_elasticsearch_convert_dttm(
|
||||
target_type: str,
|
||||
db_extra: Optional[dict[str, Any]],
|
||||
expected_result: Optional[str],
|
||||
dttm: datetime,
|
||||
dttm: datetime, # noqa: F811
|
||||
) -> None:
|
||||
from superset.db_engine_specs.elasticsearch import ElasticSearchEngineSpec as spec
|
||||
|
||||
@@ -68,7 +68,7 @@ def test_elasticsearch_convert_dttm(
|
||||
def test_opendistro_convert_dttm(
|
||||
target_type: str,
|
||||
expected_result: Optional[str],
|
||||
dttm: datetime,
|
||||
dttm: datetime, # noqa: F811
|
||||
) -> None:
|
||||
from superset.db_engine_specs.elasticsearch import OpenDistroEngineSpec as spec
|
||||
|
||||
|
||||
Reference in New Issue
Block a user