mirror of
https://github.com/wassname/cookiecutter-data-science.git
synced 2026-07-25 13:10:05 +08:00
add nbautoexport option
This commit is contained in:
@@ -28,7 +28,11 @@
|
||||
],
|
||||
"ethics_checklist": [
|
||||
"yes",
|
||||
"no",
|
||||
"no"
|
||||
],
|
||||
"nbautoexport": [
|
||||
"yes",
|
||||
"no"
|
||||
],
|
||||
"open_source_license": ["MIT", "BSD-3-Clause", "No license file"]
|
||||
}
|
||||
|
||||
@@ -30,6 +30,10 @@ packages += [
|
||||
]
|
||||
{% endif %}
|
||||
|
||||
{% if cookiecutter.nbautoexport == "yes" %}
|
||||
packages += ['nbautoexport']
|
||||
{% endif %}
|
||||
|
||||
dependencies = '{{ cookiecutter.dependency_file }}'
|
||||
|
||||
def write_dependencies():
|
||||
|
||||
@@ -25,9 +25,11 @@ requirements:
|
||||
{% elif "Pipfile" == cookiecutter.dependency_file -%}
|
||||
pipenv install
|
||||
{% endif %}
|
||||
{% if cookiecutter.nbautoexport == "yes" %}
|
||||
nbautoexport install
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
|
||||
## Delete all compiled Python files
|
||||
clean:
|
||||
find . -type f -name "*.py[co]" -delete
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
{% if cookiecutter.nbautoexport == 'yes' %}
|
||||
{
|
||||
"export_formats": [
|
||||
"script"
|
||||
],
|
||||
"organize_by": "extension"
|
||||
}
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user