Skip to content

docs: missing API documentation and docstrings#382

Open
zendy199x wants to merge 1 commit intoopenworm:experimentalfrom
zendy199x:docs/missing-api-documentation-and-docstrings
Open

docs: missing API documentation and docstrings#382
zendy199x wants to merge 1 commit intoopenworm:experimentalfrom
zendy199x:docs/missing-api-documentation-and-docstrings

Conversation

@zendy199x
Copy link
Copy Markdown

Summary

The master_openworm.py script contains no docstrings for functions or classes, and lacks API documentation. The execute_with_realtime_output function is particularly important but has no documentation explaining its parameters, return values, or expected behavior. This makes it difficult for developers to understand and use the code properly.

Changes

  • master_openworm.py

Add comprehensive docstrings to all functions including parameter descriptions, return values, and exceptions. For execute_with_realtime_output, document the command, directory, env, and exit_on_failure parameters, and explain what the function returns and when it might raise exceptions.

Copilot AI review requested due to automatic review settings March 28, 2026 17:07
Copy link
Copy Markdown

Copilot AI left a 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 improves developer usability of master_openworm.py by adding API documentation, focusing on clarifying how execute_with_realtime_output is intended to be used.

Changes:

  • Added a docstring to execute_with_realtime_output describing parameters, return values, and error behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread master_openworm.py
Comment thread master_openworm.py Outdated
Comment thread master_openworm.py
Comment thread master_openworm.py Outdated
@zendy199x zendy199x force-pushed the docs/missing-api-documentation-and-docstrings branch from 804ce0f to 565c325 Compare March 28, 2026 17:22
Signed-off-by: Zendy <50132805+zendy199x@users.noreply.github.com>
@zendy199x zendy199x force-pushed the docs/missing-api-documentation-and-docstrings branch from 565c325 to c12f362 Compare March 29, 2026 05:47
@pgleeson pgleeson changed the base branch from master to experimental April 13, 2026 09:08
mitre88 pushed a commit to mitre88/OpenWorm that referenced this pull request Apr 18, 2026
Adds comprehensive docstring to execute_with_realtime_output documenting
parameters, return values, and exceptions. Addresses openworm#382.
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.

2 participants