-
Notifications
You must be signed in to change notification settings - Fork 0
/
copier.yml
29 lines (26 loc) · 948 Bytes
/
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
# CONFIGURATION -------------------------
_subdirectory: model-repo
_templates_suffix: ""
_skip_if_exists:
- CHANGELOG.md
# PROMPT --------------------------------
repo_name:
type: str
help: What is the name of your model repository? (no spaces or underscores!)
validator: >-
{% if not (repo_name | regex_search('^[a-zA-Z0-9\-]+$')) %}
Repository name must be alphanumeric, with dashes and no underscores/spaces.
{% endif %}
default: "my-model"
model_name:
type: str
help: To validate your model, you will need to write a model class in `model.py`. What should it be called? (Please write one word in CamelCase, e.g. OpticalFlowModel).
validator: >-
{% if not (model_name | regex_search('^[A-Z][a-zA-Z0-9]+$')) %}
Model name must be one CamelCase word, e.g. OpticalFlowModel.
{% endif %}
default: "MyModel"
python_package_name:
type: str
default: "{{ repo_name | replace('-', '_') }}"
when: false