Repository navigation
docs: add code of conduct and contributing guide - #146
Conversation
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]>
Reviewer's GuideIntroduces 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 workflowflowchart 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]
File-Level Changes
Assessment against linked issues
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Codecov Report✅ All modified and coverable lines are covered by tests. 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. 🚀 New features to boost your workflow:
|
- 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]>
There was a problem hiding this comment.
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
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]>
Closes #138
Summary
CODE_OF_CONDUCT.md: Contributor Covenant 3.0, the latest version, fetched from contributor-covenant.org.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/contributing.md, in the nav after Development) covers:<type>/<topic>branch names and squash merges intodev;pyproject.tomlwith thedev/docsextras, ruff lint andruff 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;PULL_REQUEST_TEMPLATE.mdlinks the new Python guidelines instead of obsolete org pages, and its garbled docstring item is fixed.CONTRIBUTING.mddoesn't mention them.Verification
mkdocs build --strict(Python 3.12): passes.git grep -i "elixir cloud": no matches.elixir-cloud-aai/elixir-cloud-aaicode of conduct or contributing files remain.adversarial-reviewerandquality-reviewer, two rounds. Fixed:CONTRIBUTING.md, with the!marker;# type: ignore[<code>]is listed among the suppression comments;Declined review findings
Open questions
None.
Leftovers (separate items)
cloud_registry/exceptions.py,cloud_registry/ga4gh/registry/permissions.py,cloud_registry/gunicorn_config.py.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:
Enhancements:
Documentation: