Skip to content

Commit

Permalink
update AVAILABLE_EXAMPLES, isort, black
Browse files Browse the repository at this point in the history
  • Loading branch information
yuhan committed Dec 14, 2022
1 parent 7dec799 commit affcca9
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
3 changes: 2 additions & 1 deletion examples/quickstart_gcp/quickstart_gcp/assets/hackernews.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
import matplotlib.pyplot as plt
import pandas as pd
import requests
from dagster import MetadataValue, OpExecutionContext, asset
from wordcloud import STOPWORDS, WordCloud

from dagster import MetadataValue, OpExecutionContext, asset


@asset(group_name="hackernews", compute_kind="HackerNews API")
def hackernews_topstory_ids() -> pd.DataFrame:
Expand Down
5 changes: 3 additions & 2 deletions examples/quickstart_gcp/quickstart_gcp/io_managers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,17 @@

import pandas as pd
import pandas_gbq
from google.oauth2 import service_account

from dagster import (
Field,
IOManager,
InitResourceContext,
InputContext,
IOManager,
OutputContext,
StringSource,
io_manager,
)
from google.oauth2 import service_account

# Learn more about custom I/O managers in Dagster docs:
# https://docs.dagster.io/concepts/io-management/io-managers#a-custom-io-manager-that-stores-pandas-dataframes-in-tables
Expand Down
10 changes: 7 additions & 3 deletions examples/quickstart_gcp/quickstart_gcp/repository.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
from dagster import (ScheduleDefinition, define_asset_job,
load_assets_from_package_module, repository,
with_resources)
from dagster import (
ScheduleDefinition,
define_asset_job,
load_assets_from_package_module,
repository,
with_resources,
)

from . import assets
from .io_managers import bigquery_pandas_io_manager
Expand Down
1 change: 1 addition & 0 deletions python_modules/dagster/dagster/_generate/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"assets_smoke_test",
"quickstart_aws",
"quickstart_etl",
"quickstart_gcp",
"tutorial_dbt_dagster",
"tutorial_notebook_assets",
"deploy_docker",
Expand Down

0 comments on commit affcca9

Please sign in to comment.