-
Notifications
You must be signed in to change notification settings - Fork 9
Convert docstrings to Google style format #235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert docstrings to Google style format #235
Conversation
v0.14.1 release
v0.14.2 release
v0.14.3 release
Release 0.14.4
v 0.14.5 release
Updated docstrings throughout the pypiper codebase from reStructuredText style (:param, :return, :raise) to Google-style format (Args:, Returns:, Raises:) for improved readability and consistency. Modified files: - pypiper/manager.py: Converted PipelineManager class and all 27+ methods - pypiper/pipeline.py: Converted Pipeline class and all methods - pypiper/utils.py: Converted 28+ utility functions - pypiper/stage.py: Converted Stage class and methods - pypiper/ngstk.py: Converted NGSTk class and 78+ methods - pypiper/exceptions.py: Converted UnknownPipelineStageError - pypiper/folder_context.py: Converted FolderContext class All conversions maintain original descriptions and documentation details while following Google-style documentation standards.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR modernizes the docstring format across the pypiper codebase by converting from reStructuredText (reST) format to Google-style docstrings. The changes affect multiple files including utils.py, stage.py, pipeline.py, ngstk.py, manager.py, folder_context.py, and exceptions.py.
Key changes:
- Converted parameter documentation from
:param type name:toArgs:section withname (type):format - Converted return documentation from
:return type:toReturns:section - Converted exception documentation from
:raise Exception:toRaises:section - Moved opening docstring quotes to same line as the summary sentence
Reviewed Changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| pypiper/utils.py | Converted all function docstrings from reST to Google style |
| pypiper/stage.py | Updated class and method docstrings to Google style format |
| pypiper/pipeline.py | Modernized all pipeline-related docstrings |
| pypiper/ngstk.py | Converted NGSTk class and method docstrings |
| pypiper/manager.py | Updated PipelineManager docstrings to Google style |
| pypiper/folder_context.py | Converted context manager docstrings |
| pypiper/exceptions.py | Updated exception class docstrings |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Updated docstrings throughout the pypiper codebase from reStructuredText style (:param, :return, :raise) to Google-style format (Args:, Returns:, Raises:) for improved readability and consistency.
Modified files:
All conversions maintain original descriptions and documentation details while following Google-style documentation standards.