Skip to content

Commit 341bf28

Browse files
authored
Merge pull request #65 from lincc-frameworks/delucchi/issue/64
Allow hyphens in project name
2 parents 7bd2823 + b0a53e8 commit 341bf28

File tree

5 files changed

+13
-2
lines changed

5 files changed

+13
-2
lines changed

copier.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ project_name:
33
help: What is the name of your project?
44
default: example_project
55
validator: >-
6-
{% if not (project_name | regex_search('^[a-zA-Z][a-zA-Z0-9\_]+$')) %}
7-
project_name must start with a letter, followed one or more letters, digits or underscores all lowercase.
6+
{% if not (project_name | regex_search('^[a-zA-Z][a-zA-Z0-9\_\-]+$')) %}
7+
project_name must start with a letter, followed one or more letters, digits, hyphens, or underscores all lowercase.
88
{% endif %}
99
1010
module_name:
@@ -43,13 +43,24 @@ use_isort:
4343
yes: true
4444
no: false
4545

46+
create_example_module:
47+
help: Do you want to create some example module code?
48+
type: bool
49+
default: yes
50+
choices:
51+
yes: true
52+
no: false
53+
4654
###
4755
# Below this line are Copier configuration options.
4856
###
4957

5058
# Subdirectory that contains the python-project-template. Allows template metadata to be separated from the template.
5159
_subdirectory: python-project-template
5260

61+
_skip_if_exists:
62+
- README.md
63+
5364
# Tasks to execute after generating or updating a project.
5465
_tasks:
5566
- "git init"

0 commit comments

Comments
 (0)