Skip to content

Add Contributing and Code of Conduct docs#38

Merged
jeffcarp merged 1 commit intomainfrom
contrib-docs
Feb 20, 2026
Merged

Add Contributing and Code of Conduct docs#38
jeffcarp merged 1 commit intomainfrom
contrib-docs

Conversation

@jeffcarp
Copy link
Member

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @jeffcarp, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request significantly enhances the project's governance and onboarding process for new contributors by introducing formal documentation for contributing guidelines and a code of conduct. These changes centralize important information, making it easier for individuals to understand how to contribute effectively and what behavioral standards are expected within the community.

Highlights

  • New Documentation: Added dedicated contributing.md and code-of-conduct.md files to the docs/ directory.
  • README Update: The README.md file was updated to remove the previous inline contributing instructions and now links directly to the newly added contributing.md and code-of-conduct.md files.
  • Community Governance: Formalized community guidelines by including a comprehensive Code of Conduct, adapted from the Contributor Covenant, to foster an inclusive environment.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • README.md
    • Removed the detailed "Development Setup" and "Submitting Changes" sections from the Contributing section.
    • Updated the Contributing section to link to docs/contributing.md and docs/code-of-conduct.md.
  • docs/code-of-conduct.md
    • Added a new file containing the project's Code of Conduct, outlining pledges, standards, responsibilities, scope, and conflict resolution.
    • Included attribution to the Contributor Covenant.
  • docs/contributing.md
    • Added a new file detailing how to contribute, including signing a Contributor License Agreement (CLA).
    • Provided instructions for development setup, including installing dev dependencies and pre-commit hooks.
    • Outlined code quality and testing procedures using Ruff and Pytest.
    • Described the process for submitting changes via pull requests and the code review process.
Activity
  • No human activity has been recorded on this pull request yet.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces standard CONTRIBUTING.md and CODE_OF_CONDUCT.md documents, which is a great addition for an open-source project. The README.md is also updated to link to these new, more detailed guides, which cleans up the main project page. The changes are well-structured. I've added a couple of suggestions to improve the clarity of the contribution guidelines and to note the version of the Code of Conduct.

Comment on lines +93 to +95
This Code of Conduct is adapted from the Contributor Covenant, version 1.4,
available at
https://www.contributor-covenant.org/version/1/4/code-of-conduct/
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

This Code of Conduct is based on version 1.4 of the Contributor Covenant from 2016. While this is acceptable, you might consider updating to a more recent version like 2.1 (from 2021). The newer versions include some clarifications and are more commonly adopted in new projects. This would require updating the body of this document to match the text of the newer version, which can be found at https://www.contributor-covenant.org/version/2/1/code_of_conduct/.

Comment on lines +42 to +53
### Code quality and testing

Before submitting a pull request, please ensure your changes pass linting and unit tests.

- **Linting:** We use [Ruff](https://docs.astral.sh/ruff/) for linting and formatting. Run it with:
```bash
ruff check .
```
- **Testing:** We use [Pytest](https://docs.pytest.org/) for unit tests. Run them with:
```bash
pytest
```
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

The instructions for code quality and testing could be clearer about the role of pre-commit. The previous instructions in README.md explained that pre-commit automates linting, but that context is lost here. This suggestion clarifies that pre-commit runs checks automatically on commit and provides the idiomatic command to run them manually, which is clearer for contributors.

Suggested change
### Code quality and testing
Before submitting a pull request, please ensure your changes pass linting and unit tests.
- **Linting:** We use [Ruff](https://docs.astral.sh/ruff/) for linting and formatting. Run it with:
```bash
ruff check .
```
- **Testing:** We use [Pytest](https://docs.pytest.org/) for unit tests. Run them with:
```bash
pytest
```
### Code quality and testing
After installing pre-commit hooks, linting and formatting checks will run automatically on every commit. Before submitting a pull request, please ensure all checks and unit tests pass.
You can also run the checks manually:
- **Linting & Formatting:** To run checks on all files, use:
```bash
pre-commit run --all-files
  • Testing: We use Pytest for unit tests. Run them with:
    pytest

<details>
<summary>References</summary>

1. The repository style guide emphasizes minimizing cognitive load for users and providing good documentation (lines 50, 103). The suggested change improves the clarity of the contribution workflow, reducing potential confusion for new contributors. <sup>([link](https://github.com/keras-team/remote/blob/main/.gemini/styleguide.md))</sup>
</details>

@jeffcarp jeffcarp merged commit ddf770f into main Feb 20, 2026
2 checks passed
@JyotinderSingh JyotinderSingh deleted the contrib-docs branch February 25, 2026 12:33
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.

2 participants