From 56f28d5e8e0576fc9343c1dbeb18dc00779be769 Mon Sep 17 00:00:00 2001 From: colton Date: Thu, 16 Nov 2023 11:58:59 -0500 Subject: [PATCH] [docs] dragster essentials - lesson 6 - code example indentation fix (#18058) ## Summary & Motivation - Removes the usage of tabs in code samples that cause visually misaligned indentation; this is something minor, but figured I'd throw in a PR while it's at the forefront of my mind. image ## How I Tested These Changes - Previewed rendered markdown and confirmed alignment is ideal --- .../lesson-6/setting-up-a-database-resource.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/dagster-university/pages/dagster-essentials/lesson-6/setting-up-a-database-resource.md b/docs/dagster-university/pages/dagster-essentials/lesson-6/setting-up-a-database-resource.md index 6634c1f97bb7f..75d42ef3b87f4 100644 --- a/docs/dagster-university/pages/dagster-essentials/lesson-6/setting-up-a-database-resource.md +++ b/docs/dagster-university/pages/dagster-essentials/lesson-6/setting-up-a-database-resource.md @@ -13,9 +13,9 @@ Throughout this module, you’ve used DuckDB to store and transform your data. E deps=["taxi_trips_file"], ) def taxi_trips(): - ... - conn = duckdb.connect(os.getenv("DUCKDB_DATABASE")) - ... + ... + conn = duckdb.connect(os.getenv("DUCKDB_DATABASE")) + ... ``` Every asset that queries DuckDB contains the `duckdb.connect` line. As previously mentioned, this can become brittle and error-prone as your project grows, whether in the number of assets that use it or the complexity of the connections. For example, to MotherDuck, a specific S3 bucket, or loading an extension. To be exact, this brittleness is shared across the following assets: @@ -93,10 +93,10 @@ Update `dagster_university/__init__.py` with the following changes: ```python defs = Definitions( - assets=[*trip_assets, *metric_assets], - resources={ - "database": database_resource, - }, + assets=[*trip_assets, *metric_assets], + resources={ + "database": database_resource, + }, ) ```