Skip to content

docs: add code of conduct and contributing guide - #146

Merged
uniqueg merged 5 commits into
devfrom
docs/contributing
Oct 21, 2026
Merged

uniqueg merged 5 commits into
devfrom
docs/contributing

Conversation

@uniqueg

@uniqueg uniqueg commented Oct 21, 2026 •

Copy link
Copy Markdown
Member

Closes #138

Summary

  • CODE_OF_CONDUCT.md: Contributor Covenant 3.0, the latest version, fetched from contributor-covenant.org.
    • Reports go to the ELIXIR On-Cloud community moderators at [email protected].
    • The template's editor note on enforcement is removed; the rest is verbatim.
  • CONTRIBUTING.md: a concise summary of the ELIXIR On-Cloud contributor guide (contributor guide, workflow, general guidelines, managing projects). It points to the new docs page for the details.
  • Docs page "Contributing" (docs/contributing.md, in the nav after Development) covers:
    • getting started and issues;
    • branches and pull requests: the repo's <type>/<topic> branch names and squash merges into dev;
    • Conventional Commits titles of at most 50 characters, with a table of the types;
    • the Python guidelines, updated to the tooling the repo actually uses: pyproject.toml with the dev/docs extras, ruff lint and ruff format (Black style), Google-style docstrings at all levels, complete type hints checked by mypy, pytest + coverage at 100%, and ast-grep, semgrep, gitleaks and actionlint via pre-commit;
    • documentation.
  • References: the README (new "Contributing" section), the Development page and the docs home page now link the repo's code of conduct and contributing guide instead of the external organization files. PULL_REQUEST_TEMPLATE.md links the new Python guidelines instead of obsolete org pages, and its garbled docstring item is fixed.
  • Not included: issue templates are a separate item, so CONTRIBUTING.md doesn't mention them.

Verification

  • mkdocs build --strict (Python 3.12): passes.
  • git grep -i "elixir cloud": no matches.
  • No links to elixir-cloud-aai/elixir-cloud-aai code of conduct or contributing files remain.
  • CI: all checks pass (static analysis incl. pre-commit, tests on 3.10 and 3.12, Helm chart, docs build, Compose smoke test, Read the Docs preview).
  • Review: adversarial-reviewer and quality-reviewer, two rounds. Fixed:
    • feature types also cover the Helm chart, as the history does;
    • the pages say which rules tools check and which reviews check (coverage at 100% and private docstrings are checked in reviews);
    • shorter CONTRIBUTING.md, with the ! marker;
    • no duplicate section on the Development page;
    • mypy's # type: ignore[<code>] is listed among the suppression comments;
    • the README Contributing section moved to the end;
    • consistent wording, and re-wrapped lines.

Declined review findings

  • Commit messages on feature branches: the page says they "may" follow the Conventional Commits format (not "should"), as the org guideline makes them optional.
  • Long lines: the remaining lines over 79 characters are bare URLs.

Open questions

None.

Leftovers (separate items)

  • Issue templates (out of scope here).
  • Existing suppressions without a reason: cloud_registry/exceptions.py, cloud_registry/ga4gh/registry/permissions.py, cloud_registry/gunicorn_config.py.
  • Optionally enforce coverage with fail_under = 100.

🤖 Generated with Claude Code

Summary by Sourcery

Establish repository-local contribution and community standards with linked documentation for the project workflow and development guidelines.

New Features:

  • Add repository-level code of conduct and concise contribution guidance.
  • Add a dedicated documentation page covering contribution workflow, pull requests, commit conventions, Python standards, testing, and documentation.

Enhancements:

  • Update repository and documentation navigation links to reference the new local contribution resources and guidelines.
  • Align the pull request checklist with the repository's current Python documentation and typing standards.

Documentation:

  • Document how to contribute, including issue handling, branch workflow, Conventional Commit titles, Python guidelines, quality checks, and documentation practices.

uniqueg and others added 2 commits October 21, 2026 21:48
Contributor Covenant 3.0, with reports to the ELIXIR On-Cloud
community moderators ([email protected]).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
CONTRIBUTING.md sums up the ELIXIR On-Cloud contributor guide; the new
docs page Contributing has the details for this repository: issues,
branches and pull requests, Conventional Commits, and the Python
guidelines with the tooling the repository uses. README, development
page, home page and pull request template refer to them instead of
the external organization files.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@sourcery-ai

sourcery-ai Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

Introduces a repository-owned code of conduct and contribution guidance, with a detailed MkDocs page describing the project workflow and current Python quality tooling, and updates README, navigation, development documentation, and the pull request template to reference the new materials.

Flow diagram for the contribution workflow

flowchart LR
    Issue[Find or open issue] --> Branch[Create type/topic branch from dev]
    Branch --> PR[Open pull request against dev]
    PR --> Review[Review and checks]
    Review --> Merge[Squash merge into dev]
Loading

File-Level Changes

Change Details Files
Adds repository-local community standards and contributor onboarding documentation.
  • Adds Contributor Covenant 3.0 with ELIXIR On-Cloud moderator reporting details.
  • Adds a concise root contributing guide covering issues, workflow, pull requests, conduct, and links to detailed docs.
CODE_OF_CONDUCT.md
CONTRIBUTING.md
Documents the repository’s contribution workflow and engineering standards in the MkDocs site.
  • Adds guidance for issues, branch naming, pull requests, squash merges, Conventional Commit titles, Python tooling, type hints, docstrings, testing, security checks, and documentation.
  • Links the new page from the documentation navigation and Development page, while removing the duplicated contribution section.
docs/contributing.md
docs/development.md
docs/index.md
mkdocs.yml
Redirects contributor-facing references to the repository’s new policies and guidelines.
  • Updates README with a Contributing section and links to local and hosted guidance.
  • Updates the pull request template to use the repository’s Python guidelines and fixes the docstring checklist wording.
README.md
PULL_REQUEST_TEMPLATE.md

Assessment against linked issues

Issue Objective Addressed Explanation
#138 Add a Contributor Covenant code of conduct with [email protected] as the reporting contact, and replace references to the external code of conduct with the repository’s version. ✅
#138 Add a concise repository-level CONTRIBUTING.md summarizing the ELIXIR On-Cloud contribution guidance and directing contributors to the detailed documentation page. ✅
#138 Add and link a documentation contributing page that describes the repository’s actual contribution workflow and Python guidelines, including the specified documentation, typing, linting, testing, and security tooling. ✅

Possibly linked issues


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

@codecov

codecov Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (11b8327) to head (dee345a).

Additional details and impacted files
@@            Coverage Diff            @@
##               dev      #146   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            9         9           
  Lines          743       743           
=========================================
  Hits           743       743           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

uniqueg and others added 2 commits October 21, 2026 21:57
- CONTRIBUTING.md: shorter, with the breaking-change marker.
- Feature types also cover the Helm chart, as in the history.
- Say which rules tools check and which reviews check.
- Development page: no duplicate contributing section; list mypy's
  suppression comment.
- README: contributing section at the end; shorter PR template item.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Coverage at 100% is kept by reviews (Codecov reports changes); both
pages ask for the reason of suppressions; the pointer to Contributing
opens the Development page; paragraphs re-wrapped.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@uniqueg
uniqueg marked this pull request as ready for review October 21, 2026 20:05

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hey - I've found 3 issues

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

## Individual Comments

### Comment 1
<location path="CODE_OF_CONDUCT.md" line_range="71" />
<code_context>
+   2) Consequence: Access to all community spaces, tools, and communication channels is removed. In general, permanent bans should be rarely used, should have strong reasoning behind them, and should only be resorted to if working through other remedies has failed to change the behavior.
+   3) Repair: There is no possible repair in cases of this severity.
+
+This enforcement ladder is intended as a guideline. It does not limit the ability of Community Managers to use their discretion and judgment, in keeping with the best interests of our community.
+
+## Scope
</code_context>
<issue_to_address>
**Enforcement authority is unclear**

When a violation requires a discretionary enforcement decision, the final sentence gives discretion to undefined Community Managers, while the reporting and enforcement sections assign responsibility to Community Moderators; participants cannot tell who has authority to decide or change enforcement actions.

Define Community Managers’ authority and reconcile it with the Community Moderators’ assigned enforcement responsibilities.
</issue_to_address>

### Comment 2
<location path="README.md" line_range="91" />
<code_context>
 [deployment]: deployment/
 [docs]: <https://cloud-registry.readthedocs.io/en/latest/>
+[docs-contributing]: <https://cloud-registry.readthedocs.io/en/latest/contributing/>
 [logo]: docs/images/logo_elixir_on_cloud.png
 [org]: <https://elixir-on.cloud/>
</code_context>
<issue_to_address>
**Contributing links miss locale path**

When a contributor follows either new documentation link, the links point to `/latest/contributing/`, while the Read the Docs site’s configured canonical path is `/en/latest/`; contributors following either link do not reach the published guide.

Use the canonical `/en/latest/contributing/` URL in both links.

Also at `CONTRIBUTING.md:20`.
</issue_to_address>

### Comment 3
<location path="docs/contributing.md" line_range="131-132" />
<code_context>
+  the tests), including `*args` and `**kwargs`, and generic types with their
+  parameters (e.g., `dict[str, Any]`, not `dict`); add hints to module-level
+  variables and to local variables whose type isn't obvious.
+  [mypy](https://mypy.readthedocs.io/) checks them
+  (`disallow_untyped_defs`, `disallow_any_generics`).
+- **Tests:** [pytest](https://docs.pytest.org/), with coverage measured by
+  [coverage](https://coverage.readthedocs.io/): keep it at 100% of
</code_context>
<issue_to_address>
**Some type omissions pass CI**

When a contributor omits a module-level or local variable annotation, `mypy` enforces `disallow_untyped_defs` and `disallow_any_generics`, but neither requires annotations on module-level or local variables. Contributors who rely on the guide’s statement that mypy checks those annotations can omit them and still pass CI.

Clarify that those variable annotations are review guidance rather than enforced by mypy, or add checks that enforce them.
</issue_to_address>

Sourcery assessment

Needs a human reviewer. 3 findings to address first, and the new conduct policy gives moderators a ladder that can end in removing someone’s access to community spaces, with discretion to skip steps. Reverting the document would not restore participation or opportunities already lost through an enforcement decision.

Blocking findings: CODE_OF_CONDUCT.md:71, README.md:91, docs/contributing.md:132


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

Comment thread CODE_OF_CONDUCT.md Resolved
Comment thread README.md Resolved
Comment thread docs/contributing.md Resolved
The code of conduct names the Community Moderators throughout (the
template also says Community Managers once); the guide says that
reviews, not mypy, check the hints of variables.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.

docs: add code of conduct and contributing guide

1 participant