Skip to content

docs: strip issue refs and migration narrative from docstrings (#771) - #777

Merged
jepegit merged 3 commits into
masterfrom
771-docstring-cleanup
Jul 28, 2026
Merged

docs: strip issue refs and migration narrative from docstrings (#771)#777
jepegit merged 3 commits into
masterfrom
771-docstring-cleanup

Conversation

@jepegit

@jepegit jepegit commented Jul 28, 2026

Copy link
Copy Markdown
Owner

Closes #771. Also documents and closes #776 (RTD header release-badge behaviour).

What

Docstrings across the package carried tracker references (#NNN,
cellpy-core#NNN, epic/decision/Stage codes) and "what it used to be, in which
issue" narrative that rendered straight into the public API docs. Readers of the
API reference don't need the change history — issue references belong in
comments/git, not in docstrings (#771).

  • Removes issue references and migration commentary from ~185 docstrings across
    100 modules, keeping all substantive API description intact.
  • Drops one user-facing NotImplementedError message's in B4 (#708) epic
    reference in cellpy/collect/collector.py.
  • Adds a dev_docs.md note explaining the header repo-card release badge is
    fetched live from GitHub (independent of the RTD-built version) — the RTD
    version switcher is the source of truth (Docs: GitHub header shows latest release even when viewing older RTD versions #776, documented as expected).

Not a behaviour change

Docstrings only (plus the one error string and one docs note). Verified:

  • 0 issue-ref lines remain in package docstrings (AST scan).
  • All 100 changed files compile; import cellpy clean in the uv env.
  • tests/test_collectors.py passes (18).

Release

Docs-only, no code behaviour change → ships as a post-release v2.1.0.post1
(milestone v.2.1.0.post1), after v2.1.0 is tagged. Does not gate the
v2.1.0 release.

🤖 Generated with Claude Code

jepegit and others added 2 commits July 28, 2026 20:20
Docstrings across the package carried tracker references (#NNN, cellpy-core#NNN,
epic/decision/Stage codes) and "what it used to be in which issue" narrative
that rendered into the public API docs. Readers of the API reference do not
need the change history; issue references belong in comments/git, not in
docstrings.

Removes issue references and migration commentary from ~185 docstrings in
100 modules, keeping all substantive API description intact. Also drops one
user-facing NotImplementedError message's "in B4 (#708)" epic reference in
cellpy/collect/collector.py.

No behaviour change; 100 files touched, docstrings only (plus the one error
string). Package imports clean and tests/test_collectors.py passes.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The repository card's release tag is fetched from the live GitHub API at
view time, so older RTD-built versions still show the newest release. Document
this as expected in dev_docs.md; the RTD version switcher is the source of
truth for which docs you're on. Closes #776 (wontfix).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@cursor

cursor Bot commented Jul 28, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@jepegit
jepegit enabled auto-merge (squash) July 28, 2026 19:18
@jepegit
jepegit merged commit a961792 into master Jul 28, 2026
8 checks passed
@jepegit
jepegit deleted the 771-docstring-cleanup branch July 28, 2026 19:21
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: GitHub header shows latest release even when viewing older RTD versions clean up docs and docstrings

1 participant