From 9b00fac47e6778ef6cf6715adc644d9571736a86 Mon Sep 17 00:00:00 2001 From: colton Date: Tue, 3 Sep 2024 10:47:51 -0400 Subject: [PATCH] fix(ruff) replace unused methods with context.log (#24177) ## Summary & Motivation - Fixes ruff for recently added example ## How I Tested These Changes ## Changelog [New | Bug | Docs] NOCHANGELOG --- .../data-assets/data-assets/asset_decorator.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/examples/docs_beta_snippets/docs_beta_snippets/guides/data-assets/data-assets/asset_decorator.py b/examples/docs_beta_snippets/docs_beta_snippets/guides/data-assets/data-assets/asset_decorator.py index 5e74b1ab703d1..fa786b67c5618 100644 --- a/examples/docs_beta_snippets/docs_beta_snippets/guides/data-assets/data-assets/asset_decorator.py +++ b/examples/docs_beta_snippets/docs_beta_snippets/guides/data-assets/data-assets/asset_decorator.py @@ -4,20 +4,18 @@ @dg.asset -def sugary_cereals() -> None: - ... +def sugary_cereals() -> None: ... @dg.asset(deps=[sugary_cereals], group_name="sales") -def shopping_list() -> None: - ... - +def shopping_list() -> None: ... + @dg.asset( owners=["bighead@hooli.com", "team:roof", "team:corpdev"], ) -def my_dataset(): - store_data(transform_data(load_data)) +def my_dataset(context: dg.AssetExecutionContext): + context.log.info("Loading data for my_dataset") defs = dg.Definitions(assets=[my_dataset])