Skip to content

Commit

Permalink
feat: add user option to install jupyter or not during template config
Browse files Browse the repository at this point in the history
* feat: add user option to install jupyter or not during template config

---------

Co-authored-by: Tzatziou, Vasileios <Vasileios.Tzatziou@umlaut.com>
  • Loading branch information
2 people authored and pppmlt committed Aug 11, 2023
1 parent 87ee092 commit 4ce8afa
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ repos:
stages:
- commit
- manual
exclude: data/
exclude: \{\{cookiecutter.repo_name\}\}/
3 changes: 2 additions & 1 deletion cookiecutter.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
"project_description": "A short description of the project.",
"repo_name": "{{ cookiecutter.project_name.lower().replace(' ', '-') }}",
"repo_url": "URL to repository",
"env_name": "{{ cookiecutter.project_name.lower().replace(' ', '-') + '-env' }}"
"env_name": "{{ cookiecutter.project_name.lower().replace(' ', '-') + '-env' }}",
"install_jupyter": ["yes", "no"]
}
4 changes: 3 additions & 1 deletion {{cookiecutter.repo_name}}/environment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ channels:
dependencies:
- black=23.1.0
- nbqa=1.6.1
- ipykernel=6.21.1
{%- if cookiecutter.install_jupyter == 'yes' %}
- jupyter=1.0.0
{%- endif %}
- python=3.10.9
- pre-commit=3.0.4
- pylint=2.16.1

0 comments on commit 4ce8afa

Please sign in to comment.