-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcopier.yml
More file actions
76 lines (62 loc) · 1.98 KB
/
copier.yml
File metadata and controls
76 lines (62 loc) · 1.98 KB
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
---
_min_copier_version: 9.0.0
# ====== TEMPLATE ======
_answers_file: .copier-answers.yml
_subdirectory: package_template
_tasks:
- git init
- python _copier_post_generation.py
- touch mise.lock
_migrations:
- version: v2.1.1
command: prek install -f
when: "{{ _stage == 'after' }}"
_message_after_copy: |
The 'mdformat_{{ plugin_name }}' package has been initialized!
1. Review the changes and commit
1. Merge conflicts may either be '*.rej' files or as inline git diffs
2. See CONTRIBUTING.md (TLDR: run `tox`)
3. If this is a new project, you could create the GitHub repo with:
```sh
gh repo create "{{ package_name_kebab }}" --source=. --remote=origin --push --homepage="{{ repository_url }}"
```
# ====== QUESTIONS ======
plugin_name:
type: str
help: Your plugin name using underscores (no spaces or dashes)
package_name_kebab:
type: str
help: Your plugin_name converted to kebab-case for URLs
default: "mdformat-{{ plugin_name | replace('_', '-') }}"
author_name:
type: str
help: Your full name
default: Kyle King
author_email:
type: str
help: Your account email
default: dev.act.kyle@gmail.com
repository_provider:
type: str
help: Your repository provider
default: https://github.com
author_username:
type: str
help: Your username for {{ repository_provider }}
default: kyleking
repository_namespace:
type: str
help: Your repository namespace (i.e. {{ repository_provider }}/<namespace>/{{ package_name_kebab }})
default: "{{ author_username }}"
repository_url:
type: str
help: This is an internal variable where the default should be accepted.
default: "{{ repository_provider }}/{{ repository_namespace }}/{{ package_name_kebab }}"
copyright_date:
type: str
help: The copyright year
default: "{{ '%Y' | strftime }}"
sync_admon_factories:
type: bool
help: "If True, a '_synced/admon_factories/*' directory will be created with helpers for mdformat admonitions. Answer 'n' if not using"
default: false