Minor template tweaks (#832)

## Changes

Minor tweaks to the template.
This commit is contained in:
Lennart Kats (databricks) 2023-10-04 17:27:09 +02:00 committed by GitHub
parent 2ce4f74f9c
commit 0894584132
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 2 additions and 5 deletions

View File

@ -26,7 +26,7 @@
"type": "string",
"default": "yes",
"enum": ["yes", "no"],
"description": "Include a stub (sample) Python package 'my_project/src'",
"description": "Include a stub (sample) Python package in '{{.project_name}}/src'",
"order": 4
}
}

View File

@ -13,6 +13,7 @@ This file only template directives; it is skipped for the actual output.
{{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}}

View File

@ -7,6 +7,3 @@ resources:
libraries:
- notebook:
path: ../src/dlt_pipeline.ipynb
configuration:
bundle.sourcePath: /Workspace/${workspace.file_path}/src

View File

@ -35,7 +35,6 @@
"# Import DLT and src/{{.project_name}}\n",
"import dlt\n",
"import sys\n",
"sys.path.append(spark.conf.get(\"bundle.sourcePath\", \".\"))\n",
"from pyspark.sql.functions import expr\n",
"from {{.project_name}} import main"
{{else}}