Skip to content

Create CONTRIBUTING.md#114

Merged
visahak merged 3 commits into
mainfrom
visahak-patch-4
Mar 31, 2026
Merged

Create CONTRIBUTING.md#114
visahak merged 3 commits into
mainfrom
visahak-patch-4

Conversation

@visahak

@visahak visahak commented Mar 31, 2026

Copy link
Copy Markdown
Collaborator

Adding contributing documentation to the readme.

Summary by CodeRabbit

  • Documentation
    • Added comprehensive contributor guidelines for ALTK-Evolve, including bug reporting via GitHub issues, supported contribution types (bug fixes, component and strategy additions, documentation, examples, and tests), development environment setup using uv with Python version selection, code consistency via pre-commit hooks, detailed component addition procedures with necessary updates and testing, secret detection tools, and Developer Certificate of Origin signing requirements for commits.

adding contributing documentation to the readme.
@coderabbitai

coderabbitai Bot commented Mar 31, 2026

Copy link
Copy Markdown
📝 Walkthrough

Walkthrough

A new CONTRIBUTING.md file is added to document contribution guidelines for ALTK-Evolve. It covers bug reporting via GitHub issues, contribution types (bug fixes, components, strategies, documentation), development setup using uv, code consistency via pre-commit, procedures for adding new components, secret detection methods, and Developer Certificate of Origin (DCO) signing requirements.

Changes

Cohort / File(s) Summary
Contribution Guidelines Documentation
CONTRIBUTING.md
New file documenting bug reporting, contribution types, development environment setup, pre-commit configuration, component addition workflow, secret detection, and DCO signing requirements.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

Suggested reviewers

  • vinodmut
  • illeatmyhat

Poem

🐰 With contributing guide now in place,
New developers join the race!
Setup, commit, and sign with care,
ALTK-Evolve's open to share.
Hop along, the path is clear! 🌟

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The pull request title 'Create CONTRIBUTING.md' directly and clearly describes the primary change: adding a new CONTRIBUTING.md file to the repository.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch visahak-patch-4

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Comment thread CONTRIBUTING.md
You can use `uv` to create a virtual environment (if it doesn’t already exist) and install all project dependencies:

```bash
uv venv

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

i think we need to run source .venv/bin/activate before uv sync

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Thanks. I changed it to uv sync && source .venv/bin/activate copied over from the main read me

Image

Comment thread CONTRIBUTING.md
#### Using a specific Python version

```bash
uv venv --python 3.12

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

same here

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

same here

@coderabbitai coderabbitai 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.

🧹 Nitpick comments (4)
CONTRIBUTING.md (4)

63-63: Clarify that uv.lock updates automatically.

The wording "Update pyproject.toml and uv.lock" might suggest manual editing of both files. In practice, uv.lock is automatically updated when you run uv add or uv sync. Consider rephrasing to:

-3. Update `pyproject.toml` and `uv.lock`.
+3. Update `pyproject.toml` (and `uv.lock` will be updated automatically by `uv` commands).

This prevents contributors from attempting to manually edit the lock file.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@CONTRIBUTING.md` at line 63, Change the instruction text "Update
`pyproject.toml` and `uv.lock`" to clarify that contributors should manually
update pyproject.toml but not edit uv.lock, because `uv.lock` is updated
automatically when running `uv add` or `uv sync`; update the line containing
"Update `pyproject.toml` and `uv.lock`" in CONTRIBUTING.md to something like
"Update `pyproject.toml`; `uv.lock` will be updated automatically by `uv
add`/`uv sync`" so contributors won’t try to manually edit the lock file.

54-54: Use uv run prefix for consistency.

To align with the project's uv-based workflow, consider running pre-commit via uv run:

uv run pre-commit run --all-files

This ensures the command uses the project's virtual environment. Based on learnings, use uv to run Python commands instead of running them directly.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@CONTRIBUTING.md` at line 54, Replace the bare "pre-commit run --all-files"
command in CONTRIBUTING.md with the uv-prefixed invocation so the project
virtual environment is used; specifically update the line containing "pre-commit
run --all-files" to read "uv run pre-commit run --all-files".

48-48: Use uv run prefix for consistency.

To align with the project's uv-based workflow, consider running pre-commit via uv run:

uv run pre-commit install

This ensures the command uses the project's virtual environment. Based on learnings, use uv to run Python commands instead of running them directly.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@CONTRIBUTING.md` at line 48, Update the CONTRIBUTING.md entry that currently
reads "pre-commit install" to use the project's uv-run workflow by replacing
that line with "uv run pre-commit install" so the pre-commit hook is installed
inside the project's virtual environment (locate the exact string "pre-commit
install" and update it).

78-79: Use uv run prefix for consistency.

To align with the project's uv-based workflow, consider running detect-secrets via uv run:

uv pip install --upgrade "git+https://github.com/ibm/detect-secrets.git@master#egg=detect-secrets"
uv run detect-secrets scan --update .secrets.baseline
uv run detect-secrets audit .secrets.baseline

This ensures the commands use the project's virtual environment. Based on learnings, use uv to run Python commands instead of running them directly.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@CONTRIBUTING.md` around lines 78 - 79, Update the CONTRIBUTING.md commands to
run detect-secrets within the project's virtual environment: replace the direct
calls to "detect-secrets scan --update .secrets.baseline" and "detect-secrets
audit .secrets.baseline" with their "uv run" equivalents (and recommend
installing detect-secrets via "uv pip install ..." as shown), ensuring the
commands use "uv run detect-secrets" and reference ".secrets.baseline" unchanged
so they execute inside the uv-managed environment.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In `@CONTRIBUTING.md`:
- Line 63: Change the instruction text "Update `pyproject.toml` and `uv.lock`"
to clarify that contributors should manually update pyproject.toml but not edit
uv.lock, because `uv.lock` is updated automatically when running `uv add` or `uv
sync`; update the line containing "Update `pyproject.toml` and `uv.lock`" in
CONTRIBUTING.md to something like "Update `pyproject.toml`; `uv.lock` will be
updated automatically by `uv add`/`uv sync`" so contributors won’t try to
manually edit the lock file.
- Line 54: Replace the bare "pre-commit run --all-files" command in
CONTRIBUTING.md with the uv-prefixed invocation so the project virtual
environment is used; specifically update the line containing "pre-commit run
--all-files" to read "uv run pre-commit run --all-files".
- Line 48: Update the CONTRIBUTING.md entry that currently reads "pre-commit
install" to use the project's uv-run workflow by replacing that line with "uv
run pre-commit install" so the pre-commit hook is installed inside the project's
virtual environment (locate the exact string "pre-commit install" and update
it).
- Around line 78-79: Update the CONTRIBUTING.md commands to run detect-secrets
within the project's virtual environment: replace the direct calls to
"detect-secrets scan --update .secrets.baseline" and "detect-secrets audit
.secrets.baseline" with their "uv run" equivalents (and recommend installing
detect-secrets via "uv pip install ..." as shown), ensuring the commands use "uv
run detect-secrets" and reference ".secrets.baseline" unchanged so they execute
inside the uv-managed environment.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 307ca68b-f1a6-46f5-b161-7d785ef02ddf

📥 Commits

Reviewing files that changed from the base of the PR and between 010a39d and 90312b2.

📒 Files selected for processing (1)
  • CONTRIBUTING.md

@visahak visahak requested a review from gaodan-fang March 31, 2026 14:00
@visahak visahak merged commit 153d386 into main Mar 31, 2026
6 checks passed
@coderabbitai coderabbitai Bot mentioned this pull request Mar 31, 2026
@visahak visahak deleted the visahak-patch-4 branch April 1, 2026 23:42
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