Skip to content

Commit 2764be9

Browse files
committed
Fix folder name bug, python as option bug
1 parent 7ab2e0a commit 2764be9

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

copier.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,10 @@ aws:
8181
default: "y"
8282

8383
# Computed variables
84-
python: "{{ 'y' if (python_data_science == 'y' or python_package == 'y') else 'n' }}"
84+
python:
85+
type: str
86+
default: "{{ 'y' if (python_data_science == 'y' or python_package == 'y') else 'n' }}"
87+
when: false
8588

8689
# Post-generation tasks
8790
_tasks:
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
"""{{ project_description }}"""
1+
"""{{ project_description }}."""
22

3-
__version__ = "0.0.1"
4-
__all__ = []
3+
__version__ = "0.1.0"

template/{% if python == 'y' %}{{ project_slug }}{% endif %}/foo.py.jinja

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,5 @@
22

33

44
def hello_world() -> str:
5-
"""Return a greeting message.
6-
7-
Returns:
8-
A greeting message.
9-
"""
5+
"""Return a greeting."""
106
return "Hello, World!"

0 commit comments

Comments
 (0)