Skip to content

docs(readme): expand Development section with dev-deps, manual checks, PR conventions#1000

Open
coding-shalabh wants to merge 1 commit into
anthropics:mainfrom
coding-shalabh:docs/contributing-workflow
Open

docs(readme): expand Development section with dev-deps, manual checks, PR conventions#1000
coding-shalabh wants to merge 1 commit into
anthropics:mainfrom
coding-shalabh:docs/contributing-workflow

Conversation

@coding-shalabh
Copy link
Copy Markdown

Fixes #966.

What this PR does

Expands the README's ## Development section to surface information that already exists across the repo but isn't where contributors naturally look.

Three new subsections under Development:

Setting up

Adds the pip install -e \".[dev]\" install command and points at where the dev extras are declared (pyproject.toml[project.optional-dependencies]).

Running checks manually

Documents the four commands from CLAUDE.md — ruff check, ruff format, mypy, pytest — plus a single-test-file invocation. Notes that the pre-push hook covers ruff only, so mypy and pytest need to be run manually before opening a PR.

Pull request conventions

Calls out the Conventional Commits prefix that's used consistently across merged PRs (feat: / fix: / docs: / chore: / refactor: / test: etc.), plus PR-scoping and test-update expectations.

The existing Git hooks, Building Wheels Locally, and Release Workflow subsections are unchanged. Diff is +50 / -2.

Things I deliberately did not do

  • No CONTRIBUTING.md. The issue offered both options; README expansion is the lower-friction shape and easy to extract into CONTRIBUTING.md later if you'd prefer that for GitHub's auto-banner on issue/PR pages. Happy to follow up with a small CONTRIBUTING.md that links here if you'd like.
  • No new commands. Everything documented already exists in CLAUDE.md, scripts/, or pyproject.toml. Nothing fabricated.
  • No reorganization of existing subsections. Build/release sections stay as they were.

Verification

Rendered the new README locally to confirm the markdown structure is correct. No code changes, so no test impact.

…, PR conventions

The README's Development section previously documented only the initial
git-hook setup. The dev-dependency install command, the manual lint /
typecheck / test commands, and the PR title convention all existed in
the repo (pyproject.toml dev extras, CLAUDE.md, merged PR history) but
external contributors had to reverse-engineer them from those sources.

This consolidates the existing information under three new subsections:

- Setting up — pip install -e ".[dev]" + a pointer to the dev extras
- Running checks manually — the four ruff/mypy/pytest commands from
  CLAUDE.md, plus a single-test-file invocation
- Pull request conventions — Conventional Commits prefix in PR titles,
  scoping, and the expectation that behavior changes get tests

No commands are introduced that aren't already used somewhere in the
repo. The existing Git hooks, Building Wheels Locally, and Release
Workflow subsections are unchanged.

Fixes anthropics#966
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] Surface dev-deps install + test/lint commands in README (or add CONTRIBUTING.md)

1 participant