We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 04bf185 commit 71c988fCopy full SHA for 71c988f
1 file changed
sqlmesh/cli/example_project.py
@@ -127,7 +127,8 @@ def init_example_project(
127
path: t.Union[str, Path], template: ProjectTemplate = ProjectTemplate.DEFAULT
128
) -> None:
129
root_path = Path(path)
130
- config_path = root_path / "config.yaml"
+ config_extension = "py" if template == ProjectTemplate.DBT else "yaml"
131
+ config_path = root_path / f"config.{config_extension}"
132
audits_path = root_path / "audits"
133
macros_path = root_path / "macros"
134
models_path = root_path / "models"
@@ -149,7 +150,7 @@ def init_example_project(
149
150
151
def _create_folders(target_folders: t.Sequence[Path]) -> None:
152
for folder_path in target_folders:
- folder_path.mkdir()
153
+ folder_path.mkdir(exist_ok=True)
154
(folder_path / ".gitkeep").touch()
155
156
0 commit comments