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

@@ -14,10 +14,10 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
import pytest
import pytest # noqa: F401
from superset.extensions import cache_manager
from superset.utils.core import backend, DatasourceType
from superset.utils.core import backend, DatasourceType # noqa: F401
from tests.integration_tests.base_tests import SupersetTestCase
@@ -46,4 +46,4 @@ class UtilsCacheManagerTests(SupersetTestCase):
}
def test_get_explore_form_data_cache_invalid_key(self):
assert cache_manager.explore_form_data_cache.get("foo") == None
assert cache_manager.explore_form_data_cache.get("foo") is None # noqa: E711