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 arojasb3 committed Jul 14, 2024
1 parent 9c66771 commit a1af36d
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 a1af36d

Please sign in to comment.