Skip to content

Fix mixed Google/numpy docstring style across bump.py, bump_toml.py, config.py #162

Description

@coderabbitai

Summary

Several docstrings in the codebase mix Google-style Args: blocks with numpy-style Returns/Raises sections. Per the repository's path instructions, docstrings must follow the numpy style guide throughout: private functions/methods should carry only a single-line summary, and public interfaces should use full structured numpy-style docs (Parameters, Returns, Raises — not Args:).

Originating from review discussion on #121 (comment: #121 (comment)), raised by @leynos.

Affected locations

Private helpers (should be truncated to a single-line summary):

  • lading/commands/bump.py_determine_package_selectors (Lines 434-449)
  • lading/commands/bump.py_update_manifest (Lines 481-500)
  • lading/config.py_validate_mapping_keys (Lines 225-244)

Public functions (should be converted to full numpy-style docs, i.e. Args:Parameters\n----------):

  • lading/commands/bump_toml.pyupdate_section (Lines 128-144)
  • lading/commands/bump_toml.pyupdate_dependency_sections (Lines 156-171)

Required changes

  • For each private helper listed above, replace the docstring with a single-line summary only, removing the Args:/Returns/Raises sections.
  • For each public function listed above, rewrite the docstring to full numpy style: replace Args: with Parameters\n---------- (with parameter types), and keep Returns/Raises sections in numpy format (already numpy-style in these cases).
  • Audit the rest of the codebase for the same Args: + numpy-section mixed pattern to catch any remaining instances beyond those listed here.

Acceptance criteria

  • No docstring mixes Google-style Args: with numpy-style Returns/Raises sections.
  • Private functions/methods carry single-line-summary docstrings only.
  • Public functions/methods carry full numpy-style structured docstrings.

References

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentation

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions