-
Notifications
You must be signed in to change notification settings - Fork 4
/
copier.yml
86 lines (75 loc) · 2.47 KB
/
copier.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# CONFIGURATION -------------------------
_subdirectory: project_template
_templates_suffix: ""
_skip_if_exists:
- CHANGELOG.md
# PROMPT --------------------------------
project_name:
type: str
help: Please provide the name of your project.
validator: >-
{% if not project_name %} You must provide a name for the project. {% endif
%}
org:
type: str
help: What GitHub user is this project under?
validator: >-
{% if not org %} You must provide a org for the project. It might just be
your user name on the site (like GitHub) you are targeting. {% endif %}
url:
type: str
help: Provide/modify the url to your GitHub repository if needed.
default: "https://github.com/{{org}}/{{project_name}}"
python_name:
type: str
help: The Python package import name (for `import NAME` in Python code)
default: "{{ project_name|lower|replace('-', '_')|replace(' ', '_') }}"
full_name:
type: str
help: Who's the main responsible for this code?
placeholder: My Name
validator: >-
{% if not full_name %} You must provide a name (possibly yours) to place in
your config files. {% endif %}
email:
type: str
help: What's their email?
placeholder: [email protected]
validator: >-
{% if not (email | regex_search('^[a-zA-Z0-9.!#$%&’*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$')) %}
You must provide a valid email to place in
your config files.
{% endif %}
project_short_description:
type: str
help: Write a short description of your project.
default: A great package.
license:
type: str
help: Select a license
choices:
- BSD
- Apache
- MIT
- GPL
min_python_version:
type: str
help: What is the minimum version of Python your project will support? (Defaults to minimum supported by NumPy)
default: "3.10"
validator: >-
{% if not (min_python_version | regex_search('[3][.][0-9]+')) %}
Please supply a valid Python 3 version (e.g. 3.11).
{% endif %}
typing:
type: str
help: Would you like to use static type checking? (This configures mypy.)
choices:
"No/I'll configure it myself.": no_typing
"Basic type checking (type annotations not required).": loose
"Full type checking (type annotations required).": strict
coc:
type: str
help: We provide a basic Code of Conduct that can be modified to suit the needs of your project. Would you like to use this, or write your own?
choices:
"I'll use/modify the basic Code of Conduct.": our_coc
"I'll write my own Code of Conduct.": their_coc