Skip to content

Commit

Permalink
change to default factory
Browse files Browse the repository at this point in the history
  • Loading branch information
jbandoro authored and tatiana committed Nov 16, 2023
1 parent 7ec7410 commit 709ba44
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cosmos/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,13 +258,11 @@ class ExecutionConfig:

execution_mode: ExecutionMode = ExecutionMode.LOCAL
test_indirect_selection: TestIndirectSelection = TestIndirectSelection.EAGER
dbt_executable_path: str | Path | None = None
dbt_executable_path: str | Path = field(default_factory=get_system_dbt)

dbt_project_path: InitVar[str | Path | None] = None

project_path: Path | None = field(init=False)

def __post_init__(self, dbt_project_path: str | Path | None) -> None:
self.project_path = Path(dbt_project_path) if dbt_project_path else None
if not self.dbt_executable_path:
self.dbt_executable_path = get_system_dbt()

0 comments on commit 709ba44

Please sign in to comment.