Skip to content

docs: add community files (CODE_OF_CONDUCT, CONTRIBUTING, CITATION.cff) - #181

Open
atong01 wants to merge 1 commit into
mainfrom
community-docs
Open

docs: add community files (CODE_OF_CONDUCT, CONTRIBUTING, CITATION.cff)#181
atong01 wants to merge 1 commit into
mainfrom
community-docs

Conversation

@atong01

@atong01 atong01 commented Jul 20, 2026

Copy link
Copy Markdown
Owner

Adds community and citation files to the repository.

Changes

  • Add Contributor Covenant 2.1 code of conduct
  • Add contributor guidelines with dev setup, PR process, testing, and pre-commit instructions
  • Add CITATION.cff (CFF 1.2.0) with DOIs for both Tong et al. papers:
    • 10.48550/arXiv.2302.00482 (Improving and Generalizing Flow-Based Generative Models)
    • 10.48550/arXiv.2307.03672 (Simulation-Free Schrödinger Bridges)
  • Update README to link CITATION.cff, CONTRIBUTING.md, and CODE_OF_CONDUCT.md

Motivation

The repo had no CODE_OF_CONDUCT, CONTRIBUTING, or CITATION file. This adds the standard community files so contributors know how to engage and so the software is citable via DOI through GitHub's Citation File Format integration.

Validation

  • CITATION.cff validated as YAML
  • All file paths referenced in CONTRIBUTING.md confirmed to exist
  • No runtime impact (docs only)

This is part of a 4-PR batch (community-docs, add-tests, bugfixes, ci-updates). All four have disjoint file sets and were validated together locally: pytest -v --ignore=examples --ignore=runner → 172 passed, 1 skipped, 0 failed. Coverage went from 30% → 47%.

Summary by Sourcery

Add standard community and citation files and link them from the README to formalize contribution, conduct, and citation practices.

Documentation:

  • Introduce CONTRIBUTING.md with development, testing, and pull request guidelines for contributors.
  • Add a Contributor Covenant–based CODE_OF_CONDUCT.md outlining community standards and enforcement.
  • Add a CITATION.cff file so the project can be cited via standard tooling and GitHub's citation integration.
  • Update README to reference the new contributing guidelines, code of conduct, and citation file.

- Add Contributor Covenant 2.1 code of conduct
- Add contributor guidelines with dev setup, PR process, testing, and pre-commit instructions
- Add CITATION.cff (CFF 1.2.0) with DOIs for both Tong et al. papers:
  * 10.48550/arXiv.2302.00482 (Improving and Generalizing Flow-Based Generative Models)
  * 10.48550/arXiv.2307.03672 (Simulation-Free Schrodinger Bridges)
- Update README to link CITATION.cff, CONTRIBUTING.md, and CODE_OF_CONDUCT.md
@sourcery-ai

sourcery-ai Bot commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Reviewer's Guide

Adds standard community and citation documentation (CODE_OF_CONDUCT, CONTRIBUTING, CITATION.cff) and wires them into the README so contributors have clear guidance and the project is citable via GitHub’s citation integration.

File-Level Changes

Change Details Files
Introduce contributor documentation describing dev environment setup, style tools, testing, and PR workflow.
  • Create CONTRIBUTING.md with conda-based dev setup instructions, including editable install and notebook kernel registration.
  • Document ruff- and pre-commit–based code style, including how to run formatting and linting locally.
  • Describe pytest-based test workflow, including slow-test markers and doctests, and expectations for adding tests with code changes.
  • Outline standard pull request workflow, bug-reporting expectations, and guidance for adding new flow matching methods in torchcfm.
CONTRIBUTING.md
Add a formal code of conduct based on Contributor Covenant v2.1, including enforcement and scope.
  • Define acceptable and unacceptable behavior and community standards.
  • Document enforcement responsibilities, reporting process via maintainer email, and privacy expectations for reporters.
  • Include graduated enforcement guidelines (correction, warning, temporary ban, permanent ban) and attribution to Contributor Covenant and Mozilla CoC.
CODE_OF_CONDUCT.md
Add machine-readable citation metadata and reference it from the README.
  • Add a CITATION.cff file (CFF 1.2.0) containing project metadata and DOIs for the two Tong et al. papers so GitHub can surface citation info.
  • Update README to mention the CITATION.cff entry point alongside existing BibTeX citation instructions.
CITATION.cff
README.md
Make README explicitly point contributors to the new community docs.
  • Add a note under the citation section that the repository is citable via CITATION.cff.
  • Add a sentence in the Code Contributions section linking to CONTRIBUTING.md and CODE_OF_CONDUCT.md so newcomers can quickly find them.
README.md

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've found 1 issue

Prompt for AI Agents
Please address the comments from this code review:

## Individual Comments

### Comment 1
<location path="CONTRIBUTING.md" line_range="17-18" />
<code_context>
+git clone https://github.com/<your-username>/conditional-flow-matching.git
+cd conditional-flow-matching
+
+# create a conda environment with python 3.10
+conda create -n torchcfm python=3.10
+conda activate torchcfm
</code_context>
<issue_to_address>
**nitpick (typo):** Consider capitalizing "Python" here for consistency with the rest of the document.

Elsewhere you use "Python 3.10" with a capital P; please update this line to match that capitalization.

```suggestion
# create a conda environment with Python 3.10
conda create -n torchcfm python=3.10
```
</issue_to_address>

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Comment thread CONTRIBUTING.md
Comment on lines +17 to +18
# create a conda environment with python 3.10
conda create -n torchcfm python=3.10

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick (typo): Consider capitalizing "Python" here for consistency with the rest of the document.

Elsewhere you use "Python 3.10" with a capital P; please update this line to match that capitalization.

Suggested change
# create a conda environment with python 3.10
conda create -n torchcfm python=3.10
# create a conda environment with Python 3.10
conda create -n torchcfm python=3.10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant