Skip to content

Commit 3cf54dc

Browse files
committed
fix(docs): Remove unnecessary indent from example DAGs
1 parent ae2662a commit 3cf54dc

File tree

1 file changed

+25
-26
lines changed

1 file changed

+25
-26
lines changed

docs/example_dags.rst

Lines changed: 25 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Example DAGs
44
This section contains a few DAGs showing off some dbt pipelines to get you going.
55

66
.. warning::
7-
All example DAGs are tested against against `apache-airflow==2.2.5`. Some changes, like modifying `import` statements or changing types, may be required for them to work in environments running other versions of Airflow.
7+
All example DAGs are tested against against ``apache-airflow==2.2.5``. Some changes, like modifying ``import`` statements or changing types, may be required for them to work in environments running other versions of Airflow.
88

99
Basic DAG
1010
^^^^^^^^^
@@ -15,31 +15,30 @@ This basic DAG shows off a single ``DbtRunOperator`` that executes daily:
1515
:linenos:
1616
:caption: basic_dag.py
1717
18-
"""Sample basic DAG which dbt runs a project."""
19-
import datetime as dt
20-
21-
from airflow import DAG
22-
from airflow.utils.dates import days_ago
23-
from airflow_dbt_python.operators.dbt import DbtRunOperator
24-
25-
with DAG(
26-
dag_id="example_basic_dbt_run",
27-
schedule_interval="0 * * * *",
28-
start_date=days_ago(1),
29-
catchup=False,
30-
dagrun_timeout=dt.timedelta(minutes=60),
31-
) as dag:
32-
33-
dbt_run = DbtRunOperator(
34-
task_id="dbt_run_hourly",
35-
project_dir="/path/to/my/dbt/project/",
36-
profiles_dir="~/.dbt/",
37-
select=["+tag:hourly"],
38-
exclude=["tag:deprecated"],
39-
target="production",
40-
profile="my-project",
41-
full_refresh=False,
42-
)
18+
"""Sample basic DAG which dbt runs a project."""
19+
import datetime as dt
20+
21+
from airflow import DAG
22+
from airflow.utils.dates import days_ago
23+
from airflow_dbt_python.operators.dbt import DbtRunOperator
24+
25+
with DAG(
26+
dag_id="example_basic_dbt_run",
27+
schedule_interval="0 * * * *",
28+
start_date=days_ago(1),
29+
catchup=False,
30+
dagrun_timeout=dt.timedelta(minutes=60),
31+
) as dag:
32+
dbt_run = DbtRunOperator(
33+
task_id="dbt_run_hourly",
34+
project_dir="/path/to/my/dbt/project/",
35+
profiles_dir="~/.dbt/",
36+
select=["+tag:hourly"],
37+
exclude=["tag:deprecated"],
38+
target="production",
39+
profile="my-project",
40+
full_refresh=False,
41+
)
4342
4443
4544
Run and Docs from S3

0 commit comments

Comments
 (0)