Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

### Added

* Make Code of Conduct optional [#464](https://github.com/NLeSC/python-template/pull/530)
* Make SonarCloud optional [#515](https://github.com/NLeSC/python-template/pull/515)
* Make citation optional [#471](https://github.com/NLeSC/python-template/pull/471)
* Make online documentation optional [#476](https://github.com/NLeSC/python-template/pull/476)
Expand Down
7 changes: 7 additions & 0 deletions copier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,13 @@ AddPreCommit:
default: "{{ template_profile != 'minimum' }}"
help: Add pre-commit hook to check code style and format on every commit?

AddCodeConduct:
when: "{{ template_profile == 'ask' }}"
type: bool
default: "{{ template_profile != 'minimum' }}"
help: Add code of conduct?

Comment thread
lyashevska marked this conversation as resolved.
Outdated

Comment thread
lyashevska marked this conversation as resolved.
Outdated
AddSonarCloud:
when: "{{ template_profile == 'ask' }}"
type: bool
Expand Down
2 changes: 1 addition & 1 deletion template/CONTRIBUTING.md.jinja
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Contributing guidelines

We welcome any kind of contribution to our software, from simple comment or question to a full fledged [pull request](https://help.github.com/articles/about-pull-requests/). Please read and follow our [Code of Conduct](CODE_OF_CONDUCT.md).
We welcome any kind of contribution to our software, from simple comment or question to a full fledged [pull request](https://help.github.com/articles/about-pull-requests/). {% if AddCodeConduct -%}Please read and follow our [Code of Conduct](CODE_OF_CONDUCT.md).{%- endif %}

A contribution can be one of the following cases:

Expand Down
2 changes: 2 additions & 0 deletions template/project_setup.md.jinja
Comment thread
lyashevska marked this conversation as resolved.
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,12 @@ help you decide which tool to use for packaging.
- Follow the [making software citable](https://guide.esciencecenter.nl/#/citable_software/making_software_citable) section in the guide.
{%- endif -%}

{% if AddCodeConduct -%}
## CODE_OF_CONDUCT.md

- Information about how to behave professionally
- [Relevant section in the guide](https://guide.esciencecenter.nl/#/best_practices/documentation?id=code-of-conduct)
{%- endif -%}

## CONTRIBUTING.md

Expand Down