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.py — update_section (Lines 128-144)
lading/commands/bump_toml.py — update_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
Summary
Several docstrings in the codebase mix Google-style
Args:blocks with numpy-styleReturns/Raisessections. 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— notArgs:).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.py—update_section(Lines 128-144)lading/commands/bump_toml.py—update_dependency_sections(Lines 156-171)Required changes
Args:/Returns/Raisessections.Args:withParameters\n----------(with parameter types), and keepReturns/Raisessections in numpy format (already numpy-style in these cases).Args:+ numpy-section mixed pattern to catch any remaining instances beyond those listed here.Acceptance criteria
Args:with numpy-styleReturns/Raisessections.References