-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #547 from NLeSC/535_menu_and_profiles
535-menu and profiles
- Loading branch information
Showing
13 changed files
with
281 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
--- | ||
# Questions for code quality features | ||
|
||
# the main menu | ||
SelectCodeQualityFeatures: | ||
when: "{{ template_profile != 'minimum' }}" | ||
type: yaml | ||
default: |- | ||
{% if template_profile == 'recommended' %} | ||
[SelectGitHubActions_flag, not_implemented_linting, AddSonarCloud_flag, not_implemented_editor_config] | ||
{%- else -%} | ||
[] | ||
{%- endif %} | ||
help: Select code quality features | ||
multiselect: true | ||
choices: | ||
GitHub Actions: | ||
value: SelectGitHubActions_flag | ||
# validator: "{% if something != 'AnotherThing' %}BlaBla{% endif %}" | ||
Linting (using ruff NOT_IMPLEMENTED): | ||
value: not_implemented_linting | ||
# validator: "{% if something != 'AnotherThing' %}BlaBla{% endif %}" | ||
Pre-commit: | ||
value: AddPreCommit_flag | ||
# validator: "{% if something != 'AnotherThing' %}BlaBla{% endif %}" | ||
Code analysis (using SonarCloud): | ||
value: AddSonarCloud_flag | ||
# validator: "{% if something != 'AnotherThing' %}BlaBla{% endif %}" | ||
Editorconfig (NOT_IMPLEMENTED): | ||
value: not_implemented_editor_config | ||
# validator: "{% if something != 'AnotherThing' %}BlaBla{% endif %}" | ||
|
||
|
||
# Sub-menus | ||
SelectGitHubActions: | ||
when: "{{ 'SelectGitHubActions_flag' in SelectCodeQualityFeatures }}" | ||
type: yaml | ||
default: |- | ||
{% if template_profile == 'recommended' %} | ||
[AddGitHubActionBuild_flag, AddGitHubActionDocumentation_flag] | ||
{%- else -%} | ||
[] | ||
{%- endif %} | ||
help: Select GitHub Action workflows | ||
multiselect: true | ||
choices: | ||
Build: | ||
value: AddGitHubActionBuild_flag | ||
# validator: "{% if something != 'AnotherThing' %}BlaBla{% endif %}" | ||
Documentation: | ||
value: AddGitHubActionDocumentation_flag | ||
# validator: "{% if something != 'AnotherThing' %}BlaBla{% endif %}" | ||
Link checker (reports broken URLs): | ||
value: AddLinkCheck_flag | ||
# validator: "{% if something != 'AnotherThing' %}BlaBla{% endif %}" | ||
|
||
|
||
# computed features | ||
AddGitHubActionBuild: | ||
type: bool | ||
default: "{{ 'AddGitHubActionBuild_flag' in SelectGitHubActions }}" | ||
when: false | ||
|
||
AddGitHubActionDocumentation: | ||
type: bool | ||
default: "{{ 'AddGitHubActionDocumentation_flag' in SelectGitHubActions }}" | ||
when: false | ||
|
||
AddLinkCheck: | ||
type: bool | ||
default: "{{ 'AddLinkCheck_flag' in SelectGitHubActions }}" | ||
when: false | ||
|
||
AddPreCommit: | ||
type: bool | ||
default: "{{ 'AddPreCommit_flag' in SelectCodeQualityFeatures }}" | ||
when: false | ||
|
||
AddSonarCloud: | ||
type: bool | ||
default: "{{ 'AddSonarCloud_flag' in SelectCodeQualityFeatures }}" | ||
when: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
# Questions for community features | ||
|
||
# the main menu | ||
SelectCommunityFeatures: | ||
when: "{{ template_profile != 'minimum' }}" | ||
type: yaml | ||
default: |- | ||
{% if template_profile == 'recommended' %} | ||
[AddCodeConduct_flag, AddContributing_flag] | ||
{%- else -%} | ||
[] | ||
{%- endif %} | ||
help: Select community features | ||
multiselect: true | ||
choices: | ||
Code of conduct: | ||
value: AddCodeConduct_flag | ||
# validator: "{% if something != 'AnotherThing' %}BlaBla{% endif %}" | ||
Contributing guidelines: | ||
value: AddContributing_flag | ||
# validator: "{% if something != 'AnotherThing' %}BlaBla{% endif %}" | ||
|
||
# computed features | ||
AddCodeConduct: | ||
type: bool | ||
default: "{{ 'AddCodeConduct_flag' in SelectCommunityFeatures }}" | ||
when: false | ||
|
||
AddContributing: | ||
type: bool | ||
default: "{{ 'AddContributing_flag' in SelectCommunityFeatures }}" | ||
when: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
# Questions for documentation features | ||
|
||
# the main menu | ||
SelectDocumentationFeatures: | ||
when: "{{ template_profile != 'minimum' }}" | ||
type: yaml | ||
default: |- | ||
{% if template_profile == 'recommended' %} | ||
[AddOnlineDocumentation_flag, AddDevDoc_flag, not_implemented_project_setup] | ||
{%- else -%} | ||
[] | ||
{%- endif %} | ||
help: Select documentation features | ||
multiselect: true | ||
choices: | ||
Online documentation (using Read the Docs): | ||
value: AddOnlineDocumentation_flag | ||
# validator: "{% if something != 'AnotherThing' %}BlaBla{% endif %}" | ||
Developer documentation: | ||
value: AddDevDoc_flag | ||
# validator: "{% if something != 'AnotherThing' %}BlaBla{% endif %}" | ||
Project setup description (NOT_IMPLEMENTED): | ||
value: not_implemented_project_setup | ||
# validator: "{% if something != 'AnotherThing' %}BlaBla{% endif %}" | ||
|
||
# computed features | ||
AddOnlineDocumentation: | ||
type: bool | ||
default: "{{ 'AddOnlineDocumentation_flag' in SelectDocumentationFeatures }}" | ||
when: false | ||
|
||
AddDevDoc: | ||
type: bool | ||
default: "{{ 'AddDevDoc_flag' in SelectDocumentationFeatures }}" | ||
when: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
--- | ||
# Questions for publishing and releasing features | ||
|
||
# the main menu | ||
SelectPublishReleaseFeatures: | ||
when: "{{ template_profile != 'minimum' }}" | ||
type: yaml | ||
default: |- | ||
{% if template_profile == 'recommended' %} | ||
[SelectCitation_flag, AddZenodo_flag] | ||
{%- else -%} | ||
[] | ||
{%- endif %} | ||
help: Select publish and release features | ||
multiselect: true | ||
choices: | ||
Citation: | ||
value: SelectCitation_flag | ||
# validator: "{% if something != 'AnotherThing' %}BlaBla{% endif %}" | ||
Changelog: | ||
value: AddChangeLog_flag | ||
# validator: "{% if something != 'AnotherThing' %}BlaBla{% endif %}" | ||
Zenodo integration instructions: | ||
value: AddZenodo_flag | ||
# validator: "{% if something != 'AnotherThing' %}BlaBla{% endif %}" | ||
Package keywords(NOT_IMPLEMENTED): | ||
value: not_implemented_keywords | ||
# validator: "{% if something != 'AnotherThing' %}BlaBla{% endif %}" | ||
|
||
|
||
# Sub-menus | ||
# split AddCitation --> enable_citation_file and enable_cffconvert | ||
SelectCitation: | ||
when: "{{ 'SelectCitation_flag' in SelectPublishReleaseFeatures }}" | ||
type: yaml | ||
default: |- | ||
{% if template_profile == 'recommended' %} | ||
[AddCitationFile_flag, AddCFFConvert_flag] | ||
{%- else -%} | ||
[] | ||
{%- endif %} | ||
help: Select citation features | ||
multiselect: true | ||
choices: | ||
CITATION.cff file: | ||
value: AddCitationFile_flag | ||
# validator: "{% if something != 'AnotherThing' %}BlaBla{% endif %}" | ||
cffconvert GitHub Action (to validate CITATION.cff files): | ||
value: AddCFFConvert_flag | ||
# validator: "{% if something != 'AnotherThing' %}BlaBla{% endif %}" | ||
|
||
|
||
# computed features | ||
AddCitation: | ||
type: bool | ||
default: "{{ 'AddCitationFile_flag' in SelectCitation }}" | ||
when: false | ||
|
||
AddCFFConvert: | ||
type: bool | ||
default: "{{ 'AddCFFConvert_flag' in SelectCitation }}" | ||
when: false | ||
|
||
AddChangeLog: | ||
type: bool | ||
default: "{{ 'AddChangeLog_flag' in SelectPublishReleaseFeatures }}" | ||
when: false | ||
|
||
AddZenodo: | ||
type: bool | ||
default: "{{ 'AddZenodo_flag' in SelectPublishReleaseFeatures }}" | ||
when: false |
Oops, something went wrong.