-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcopier.yml
More file actions
69 lines (62 loc) · 1.65 KB
/
copier.yml
File metadata and controls
69 lines (62 loc) · 1.65 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
package_name:
type: str
help: 'What is the name of your Python package?'
default: '{{_folder_name }}'
docs:
type: str
help: 'Which documentation engine do you prefer?'
choices:
- myst
- mkdocs
default: myst
doc_deploy:
type: str
help: 'Where do you want to deploy your documentation?'
choices: |
- nowhere
- github
{%- if docs == 'mkdocs' %}
- rtd
{%- endif %}
default: nowhere
type_check:
type: str
help: 'How strict should type checking be?'
choices:
- none
- loose
- strict
default: loose
coverage:
type: str
help: 'What level of test coverage reporting do you want?'
choices:
- none
- basic
- codecov
default: none
repo_url:
type: str
help: 'URL of the source repository (e.g. https://github.com/user/repo).'
default: ''
when: false
# github-token: uses the default GITHUB_TOKEN (zero setup, but PRs won't trigger CI).
# pat: uses a PAT stored as COPIER_UPDATE_TOKEN secret (PRs trigger CI normally).
auto_update:
type: str
help: 'How should automatic template updates be configured?'
choices:
- none
- github-token
- pat
default: none
when: false
_subdirectory: template
_message_after_copy: |
The `{{package_name}}` package has been created successfully!
_exclude:
- "{% if _copier_operation == 'update' -%}tests{% endif %}"
- "{% if _copier_operation == 'update' -%}CHANGELOG.md{% endif %}"
- "{% if _copier_operation == 'update' -%}README.md{% endif %}"
- "{% if _copier_operation == 'update' -%}docs/index.md{% endif %}"
- "{% if _copier_operation == 'update' -%}src/{{ package_name.lower().replace('-', '_') }}/__init__.py{% endif %}"