chore: enforce more ruff rules (#31447)

Co-authored-by: Elizabeth Thompson <eschutho@gmail.com>
This commit is contained in:
Maxime Beauchemin
2024-12-18 17:41:34 -08:00
committed by GitHub
parent 9da65d6bfd
commit e51b95ffa8
375 changed files with 1821 additions and 1718 deletions

View File

@@ -208,7 +208,7 @@ class TestQueryContext(SupersetTestCase):
payload = get_query_context("birth_names", add_postprocessing_operations=True)
del payload["queries"][0]["granularity"]
# construct baseline query_cache_key from query_context with post processing operation
# construct baseline query_cache_key from query_context with post processing operation # noqa: E501
query_context: QueryContext = ChartDataQueryContextSchema().load(payload)
query_object: QueryObject = query_context.queries[0]
cache_key_original = query_context.query_cache_key(query_object)
@@ -222,7 +222,7 @@ class TestQueryContext(SupersetTestCase):
def test_query_cache_key_changes_when_post_processing_is_updated(self):
payload = get_query_context("birth_names", add_postprocessing_operations=True)
# construct baseline query_cache_key from query_context with post processing operation
# construct baseline query_cache_key from query_context with post processing operation # noqa: E501
query_context = ChartDataQueryContextSchema().load(payload)
query_object = query_context.queries[0]
cache_key_original = query_context.query_cache_key(query_object)