chore: set up ruff as a new linter/formatter (#28158)

This commit is contained in:
Maxime Beauchemin
2024-04-24 17:19:53 -07:00
committed by GitHub
parent e8a678b75a
commit 2d63722150
579 changed files with 2508 additions and 2542 deletions

View File

@@ -16,6 +16,7 @@
# under the License.
# isort:skip_file
"""Unit tests for Superset Celery worker"""
import datetime
import random
import string
@@ -23,14 +24,14 @@ import time
import unittest.mock as mock
from typing import Optional
from tests.integration_tests.fixtures.birth_names_dashboard import (
load_birth_names_dashboard_with_slices,
load_birth_names_data,
load_birth_names_dashboard_with_slices, # noqa: F401
load_birth_names_data, # noqa: F401
)
import pytest
import flask
from flask import current_app, has_app_context
import flask # noqa: F401
from flask import current_app, has_app_context # noqa: F401
from superset import db, sql_lab
from superset.common.db_query_status import QueryStatus