Skip to content

Commit

Permalink
fix(ruff) replace unused methods with context.log (#24177)
Browse files Browse the repository at this point in the history
## Summary & Motivation

- Fixes ruff for recently added example

## How I Tested These Changes

## Changelog [New | Bug | Docs]

NOCHANGELOG
  • Loading branch information
cmpadden authored Sep 3, 2024
1 parent f37dd47 commit 9b00fac
Showing 1 changed file with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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=["[email protected]", "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])

1 comment on commit 9b00fac

@github-actions
Copy link

@github-actions github-actions bot commented on 9b00fac Sep 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for dagster-docs-beta ready!

✅ Preview
https://dagster-docs-beta-ckf4d2ub3-elementl.vercel.app
https://dagster-docs-beta.dagster-docs.io

Built with commit 9b00fac.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.