Skip to content

docs: add CONTRIBUTING.md#2077

Merged
KRRT7 merged 1 commit intocodeflash-ai:mainfrom
mvanhorn:cf-522-contributing-guide
Apr 21, 2026
Merged

docs: add CONTRIBUTING.md#2077
KRRT7 merged 1 commit intocodeflash-ai:mainfrom
mvanhorn:cf-522-contributing-guide

Conversation

@mvanhorn
Copy link
Copy Markdown
Contributor

Summary

Adds CONTRIBUTING.md for the two audiences #522 calls out: people contributing changes back to Codeflash, and people who want to run Codeflash from this repo in editable mode to optimize their own projects.

Closes #522

Why

The repo has a clear dev workflow (uv sync, uv run prek, uv run pytest tests/) and a strong code style defined in .claude/rules/code-style.md and CLAUDE.md, but none of it was surfaced at the root. Contributors have to discover these conventions by reading CLAUDE.md or by watching CI fail.

Content

  • Development setup via uv (not pip).
  • uv run prek as the single verification command, plus uv run prek run --from-ref origin/<base> to match CI.
  • Test runner usage (uv run pytest tests/) with a subset example.
  • Code style highlights lifted from .claude/rules/code-style.md: 120-char lines, Python 3.9+, no docstrings on new code, no leading underscores, encoding="utf-8" on file I/O, absolute paths internally.
  • Commit and PR conventions from .claude/rules/git.md: feature branch off main, conventional prefixes, concise commit bodies, atomic commits, CF-#<number> link for Linear issues.
  • Editable-mode usage: uv add --editable /path/to/checkout and pip install -e /path/to/checkout, plus running the CLI directly from the checkout with uv run codeflash .... Includes when to use editable mode vs installing the PyPI package.
  • Bug report expectations (version info, minimal reproducer) and a pointer to SECURITY.md for security issues.

All commands in the guide come from existing repo files (pyproject.toml, .github/workflows/ci.yaml, .claude/rules/*) - none are fabricated.

Testing

Docs-only. No code changes, no test impact.

Closes codeflash-ai#522

Covers the two audiences the issue calls out:

1. People contributing changes back to Codeflash - development
   environment setup with uv, the single-command verification via
   uv run prek, test runner invocation, code-style pointers to
   .claude/rules/code-style.md, and the branch / commit / PR
   conventions from .claude/rules/git.md and CLAUDE.md.

2. People using Codeflash in editable mode from a source checkout
   to optimize their own projects, including the install commands
   for uv and pip, when editable mode is appropriate vs installing
   the PyPI package, and a pointer to the README Quick Start for
   the codeflash init flow.
@CLAassistant
Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@KRRT7 KRRT7 merged commit 1d26014 into codeflash-ai:main Apr 21, 2026
9 of 10 checks passed
@KRRT7
Copy link
Copy Markdown
Collaborator

KRRT7 commented Apr 21, 2026

thanks!

@KRRT7
Copy link
Copy Markdown
Collaborator

KRRT7 commented Apr 21, 2026

btw I'm working atm on improving a few things like the agents.md, rules etc, will be ready in a few hours

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.

Add CONTRIBUTING.md file

3 participants