Skip to content

[Tune] Remove pydoclint ignore for Tune docstrings#63500

Open
pseudo-rnd-thoughts wants to merge 2 commits into
ray-project:masterfrom
pseudo-rnd-thoughts:fix-tune-docstrings
Open

[Tune] Remove pydoclint ignore for Tune docstrings#63500
pseudo-rnd-thoughts wants to merge 2 commits into
ray-project:masterfrom
pseudo-rnd-thoughts:fix-tune-docstrings

Conversation

@pseudo-rnd-thoughts
Copy link
Copy Markdown
Member

Description

#52974 added pydoclint to pre-commit without fixing any issues through adding all the problematic docstrings to an ignore list.
However this means that all the docstrings that do have issues / problems with them that aren't raised or fixed (which is helpful for agents understanding codebases).

This PR removes all of Tune's ignores then uses Claude to fix all the docstrings / type hints (and reviewed by me to confirm implementations).

Signed-off-by: Mark Towers <mark@anyscale.com>
@pseudo-rnd-thoughts pseudo-rnd-thoughts requested a review from a team as a code owner May 19, 2026 10:53
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request focuses on improving the documentation and type hinting across the Ray Tune library. It addresses numerous pydoclint violations by adding missing Args, Returns, and Yields sections to docstrings, and by adding or refining type hints in function signatures. The review feedback correctly identifies several instances where the new docstring descriptions were inaccurate regarding whether parameters were still in use or what their actual types were, specifically pointing out errors in describing variables as dictionaries when they are strings, and marking parameters as unused when they are still active in the implementation.

Comment thread python/ray/tune/progress_reporter.py Outdated
Comment thread python/ray/tune/progress_reporter.py Outdated
Comment thread python/ray/tune/utils/util.py
Comment thread python/ray/tune/search/sample.py
Comment thread python/ray/tune/search/sample.py
Signed-off-by: Mark Towers <mark@anyscale.com>
@ray-gardener ray-gardener Bot added tune Tune-related issues docs An issue or change related to documentation labels May 19, 2026
@pseudo-rnd-thoughts pseudo-rnd-thoughts added the go add ONLY when ready to merge, run all tests label May 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs An issue or change related to documentation go add ONLY when ready to merge, run all tests tune Tune-related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant