Skip to content

Commit

Permalink
fix minor issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jlaneve committed Jun 6, 2023
1 parent f901b8f commit 86b817e
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cosmos/providers/dbt/core/operators/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def run_command(
logger.info("Trying to run the command:\n %s\nFrom %s", cmd, tmp_project_dir)

result = self.run_subprocess(
command=cmd,
command=cmd + ["--profile", profile_name],
env=env,
output_encoding=self.output_encoding,
cwd=tmp_project_dir,
Expand Down
2 changes: 2 additions & 0 deletions cosmos/providers/dbt/dag.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
"""
This module contains a function to render a dbt project as an Airflow DAG.
"""
from __future__ import annotations

try:
from typing import Literal
except ImportError:
Expand Down
2 changes: 2 additions & 0 deletions cosmos/providers/dbt/render.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
"""
This module contains a function to render a dbt project into Cosmos entities.
"""
from __future__ import annotations

import itertools
import logging

Expand Down
2 changes: 2 additions & 0 deletions cosmos/providers/dbt/task_group.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
"""
This module contains a function to render a dbt project as an Airflow Task Group.
"""
from __future__ import annotations

try:
from typing import Literal
except ImportError:
Expand Down
1 change: 1 addition & 0 deletions dev/dags/basic_cosmos_dag.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
profile_args={
"schema": "public",
},
profile_name_override="airflow",
# normal dag parameters
schedule_interval="@daily",
start_date=datetime(2023, 1, 1),
Expand Down

0 comments on commit 86b817e

Please sign in to comment.