Code of Conduct
A walkthrough on setting up a code-of-conduct policy for your project.
Example CODE_OF_CONDUCT.md template rendering
Introduction
Background: A Code of Conduct is important in setting the standards for interaction within a project team. It promotes a positive community environment, addressing unacceptable behaviors and providing mechanisms for conflict resolution. In this guide, we'll help you bootstrap your project with a recommended a Code of Conduct, notably the Contributor Covenant, which is widely recognized and adopted in open-source communities.
Use Cases:
- Establishing a respectful and inclusive team culture.
- Providing clear guidelines on acceptable behaviors and handling grievances.
Prerequisites
- Understanding of community management and team dynamics.
- Familiarity with Markdown for editing documentation.
Quick Start
⬇️ Contributor Covenant Template (see example)
Access the standard Contributor Covenant template for a robust Code of Conduct policy to use in your project.
Add a supplementary collaboration policy specifically designed for scientific research environments, addressing publication ethics, authorship, and research integrity.
Add a citation file to make your project properly citable in academic and research contexts.
Step-by-Step Guide
- Team Consultation: Discuss the adoption of the Contributor Covenant with your team, ensuring consensus.
- Setting Up the Document:
- Create a
CODE_OF_CONDUCT.md
file in your repository. - Copy the Contributor Covenant template into this file.
- Replace
[INSERT CONTACT METHOD]
with appropriate contact details for reporting issues.
- Create a
- Integrate into Your Project:
- Add the Contributor Covenant badge (
) to your
README.md
for visibility and easy access.[](CODE_OF_CONDUCT.md)
- Add the Contributor Covenant badge (
Additional Guidance on Scientific Collaboration
In addition to the standard Contributor Covenant, this project includes a supplementary document: CODE_OF_COLLAB.md
, which outlines expectations specific to scientific research collaboration.
- Use the Contributor Covenant for general behavior and inclusive participation in open-source settings.
- For scientific research collaboration, refer to CODE_OF_COLLAB.md to understand our collaboration expectations in the context of research, publication, and funding goals.
Citation Guidance
Academic citation is a crucial aspect of scientific and research software projects. Making your project citable helps ensure that contributors receive appropriate credit when others build upon your work and enables tracking of your project's impact in the research community.
Creating a CITATION.cff File
We recommend adding a CITATION.cff
file to the root of your repository. This file follows the Citation File Template specification and provides structured metadata that can be automatically processed by citation management tools.
Setting Up the Citation File:
- Create a
CITATION.cff
file in the root of your repository. - Use the template, replacing placeholder values with your project details.
- Include all significant contributors as authors.
- Create a
Integrate with Your Project:
- Add a citation section to your
README.md
with instructions on how to cite your work. - Consider connecting your repository to Zenodo to obtain a DOI.
- Add a citation section to your
Citation File Template
```yaml # CITATION.cff - This file provides citation information for your project cff-version: 1.2.0 message: "If you use this software, please cite it as below." type: software title: "Title of Your Software" version: "1.0.0" date-released: "YYYY-MM-DD" abstract: "A brief abstract describing your software." authors: - family-names: "Last Name" given-names: "First Name" affiliation: "Your Institution" orcid: "https://orcid.org/xxxx-xxxx-xxxx-xxxx" # Optional url: "https://github.com/username/repository" repository-code: "https://github.com/username/repository" license: "LICENSE-NAME" # e.g., "Apache-2.0", "MIT", etc. keywords: - "keyword1" - "keyword2" - "keyword3" # For software related to published research, include the reference: references: - type: "article" authors: - family-names: "Author Last" given-names: "Author First" title: "Title of the related publication" year: YYYY journal: "Journal Name" doi: "10.xxxx/xxxxx" # If available ```Frequently Asked Questions (FAQ)
- Q: Why is a Code of Conduct important for projects?
- A: It establishes a standard for behavior, promoting a safe and inclusive environment for collaboration.
- Q: Can I customize the Contributor Convenant Code of Conduct template?
- A: Yes! Especially if your project is managed in a unique way.
- Q: What should be done if a team member violates the Code of Conduct?
- A: Violations should be reported to the designated contact person or team. The matter should be handled confidentially and in accordance with the guidelines set forth in the Code of Conduct.
- Q: How often should the Code of Conduct be reviewed or updated?
- A: Regularly reviewing and updating the Code of Conduct ensures it stays relevant and effective. It's advisable to reassess it annually or when significant changes occur within the project or community.
Credits
Authorship:
Acknowledgements:
- Inspired by the Contributor Covenant.
Feedback and Contributions
Your feedback and contributions are welcome to enhance this guide. See our contribution guidelines.