mirror of https://github.com/databricks/cli.git
33 lines
927 B
Cheetah
33 lines
927 B
Cheetah
# Preamble
|
|
|
|
This file only template directives; it is skipped for the actual output.
|
|
|
|
{{skip "__preamble"}}
|
|
|
|
{{$notDLT := not (eq .include_dlt "yes")}}
|
|
{{$notNotebook := not (eq .include_notebook "yes")}}
|
|
{{$notPython := not (eq .include_python "yes")}}
|
|
|
|
{{if $notPython}}
|
|
{{skip "{{.project_name}}/src/{{.project_name}}"}}
|
|
{{skip "{{.project_name}}/tests/main_test.py"}}
|
|
{{skip "{{.project_name}}/setup.py"}}
|
|
{{skip "{{.project_name}}/pytest.ini"}}
|
|
{{skip "{{.project_name}}/requirements-dev.txt"}}
|
|
{{end}}
|
|
|
|
{{if $notDLT}}
|
|
{{skip "{{.project_name}}/src/dlt_pipeline.ipynb"}}
|
|
{{skip "{{.project_name}}/resources/{{.project_name}}_pipeline.yml"}}
|
|
{{end}}
|
|
|
|
{{if $notNotebook}}
|
|
{{skip "{{.project_name}}/src/notebook.ipynb"}}
|
|
{{end}}
|
|
|
|
{{if (and $notDLT $notNotebook $notPython)}}
|
|
{{skip "{{.project_name}}/resources/{{.project_name}}_job.yml"}}
|
|
{{else}}
|
|
{{skip "{{.project_name}}/resources/.gitkeep"}}
|
|
{{end}}
|