Skip to content

Commit

Permalink
Update copier.yaml
Browse files Browse the repository at this point in the history
Change display_name and module_name from type placeholder to default
Change include_reader_plugin, include_writer_plugin, include_sample_data_plugin and include_widget_plugin from default value 'true' to default value 'false'.
  • Loading branch information
pearsomark authored Nov 25, 2024
1 parent f406a7f commit 489f06d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions copier.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,23 @@ plugin_name:
plugin_name must be lowercase, no spaces, and may contain hyphens.
{% endif %}
display_name:
placeholder: FooBar Segmentation
default: "{{ plugin_name|lower|replace('napari-', '')|title|replace('-', ' ') }}"
help: Display name for your plugin
type: str
validator: >-
{% if not (display_name | regex_search('(.|\s)*\S(.|\s)*')) %}
display_name must not be empty
{% endif %}
module_name:
placeholder: "{{ plugin_name|lower|replace('-', '_') }}"
default: "{{ plugin_name|lower|replace('-', '_') }}"
help: Plugin module name
type: str
validator: >-
{% if not (module_name | regex_search("^[a-z][_a-z0-9]+$")) %}
module_name must be lowercase, and may contain underscores
{% endif %}
short_description:
placeholder: A simple plugin to use FooBar segmentation within napari
placeholder: A simple plugin to use {{display_name}} within napari
help: Short description of what your plugin does
type: str
validator: >-
Expand All @@ -50,19 +50,19 @@ github_repository_url:
- provide later
- https://github.com/{{github_username_or_organization}}/{{plugin_name}}
include_reader_plugin:
default: true
default: false
help: Include reader plugin?
type: bool
include_writer_plugin:
default: true
default: false
help: Include writer plugin?
type: bool
include_sample_data_plugin:
default: true
default: false
help: Include sample data plugin?
type: bool
include_widget_plugin:
default: true
default: false
help: Include widget plugin?
type: bool
use_git_tags_for_versioning:
Expand Down Expand Up @@ -114,4 +114,4 @@ _tasks:
"--install_precommit={{ install_precommit }}",
"--github_repository_url={{ github_repository_url }}",
"--github_username_or_organization={{ github_username_or_organization }}",
]
]

0 comments on commit 489f06d

Please sign in to comment.