mirror of https://github.com/databricks/cli.git
parent
2ce4f74f9c
commit
0894584132
|
@ -26,7 +26,7 @@
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"default": "yes",
|
"default": "yes",
|
||||||
"enum": ["yes", "no"],
|
"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
|
"order": 4
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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}}/tests/main_test.py"}}
|
||||||
{{skip "{{.project_name}}/setup.py"}}
|
{{skip "{{.project_name}}/setup.py"}}
|
||||||
{{skip "{{.project_name}}/pytest.ini"}}
|
{{skip "{{.project_name}}/pytest.ini"}}
|
||||||
|
{{skip "{{.project_name}}/requirements-dev.txt"}}
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
{{if $notDLT}}
|
{{if $notDLT}}
|
||||||
|
|
|
@ -7,6 +7,3 @@ resources:
|
||||||
libraries:
|
libraries:
|
||||||
- notebook:
|
- notebook:
|
||||||
path: ../src/dlt_pipeline.ipynb
|
path: ../src/dlt_pipeline.ipynb
|
||||||
|
|
||||||
configuration:
|
|
||||||
bundle.sourcePath: /Workspace/${workspace.file_path}/src
|
|
||||||
|
|
|
@ -35,7 +35,6 @@
|
||||||
"# Import DLT and src/{{.project_name}}\n",
|
"# Import DLT and src/{{.project_name}}\n",
|
||||||
"import dlt\n",
|
"import dlt\n",
|
||||||
"import sys\n",
|
"import sys\n",
|
||||||
"sys.path.append(spark.conf.get(\"bundle.sourcePath\", \".\"))\n",
|
|
||||||
"from pyspark.sql.functions import expr\n",
|
"from pyspark.sql.functions import expr\n",
|
||||||
"from {{.project_name}} import main"
|
"from {{.project_name}} import main"
|
||||||
{{else}}
|
{{else}}
|
||||||
|
|
Loading…
Reference in New Issue