add nbautoexport option

This commit is contained in:
Emily Miller
2021-04-07 14:38:42 -07:00
parent c2d521f5b7
commit ec3d525a1f
4 changed files with 20 additions and 2 deletions
+5 -1
View File
@@ -28,7 +28,11 @@
],
"ethics_checklist": [
"yes",
"no",
"no"
],
"nbautoexport": [
"yes",
"no"
],
"open_source_license": ["MIT", "BSD-3-Clause", "No license file"]
}
+4
View File
@@ -30,6 +30,10 @@ packages += [
]
{% endif %}
{% if cookiecutter.nbautoexport == "yes" %}
packages += ['nbautoexport']
{% endif %}
dependencies = '{{ cookiecutter.dependency_file }}'
def write_dependencies():
+3 -1
View File
@@ -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 %}