Repository navigation
Adds pydoclint to pre-commit - #52974
Merged
Merged
Conversation
Signed-off-by: Thomas Desrosiers <[email protected]>
aslonnie
approved these changes
May 13, 2025
Contributor
|
cc @MortalHappiness , a stellar example from @thomasdesr of how lints are applied repo wide. |
thomasdesr
enabled auto-merge (squash)
May 13, 2025 21:36
4 of 8 tasks
matthewdeng
pushed a commit
that referenced
this pull request
May 18, 2026
## 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. This PR removes all of Train's ignores then uses Claude to fix all the docstrings / type hints (and reviewed by me to confirm implementations). --------- Signed-off-by: Mark Towers <[email protected]> Co-authored-by: Mark Towers <[email protected]>
This was referenced May 19, 2026
edoakes
pushed a commit
that referenced
this pull request
May 20, 2026
## 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 the Ray Util ignores then uses Claude to fix all the docstrings / type hints (and reviewed by me to confirm implementations). --------- Signed-off-by: Mark Towers <[email protected]> Co-authored-by: Mark Towers <[email protected]> Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
justinvyu
pushed a commit
that referenced
this pull request
May 22, 2026
#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 <[email protected]> Co-authored-by: Mark Towers <[email protected]>
matthewdeng
pushed a commit
that referenced
this pull request
May 22, 2026
## 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 AIR's ignores then uses Claude to fix all the docstrings / type hints (and reviewed by me to confirm implementations). --------- Signed-off-by: Mark Towers <[email protected]> Co-authored-by: Mark Towers <[email protected]>
This was referenced May 25, 2026
TruongQuangPhat
pushed a commit
to cyhapun/ray-fix-issue
that referenced
this pull request
May 27, 2026
## Description ray-project#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. This PR removes all of Train's ignores then uses Claude to fix all the docstrings / type hints (and reviewed by me to confirm implementations). --------- Signed-off-by: Mark Towers <[email protected]> Co-authored-by: Mark Towers <[email protected]> Signed-off-by: phattruong <[email protected]>
alexandrplashchinsky
pushed a commit
to alexandrplashchinsky/ray-alex
that referenced
this pull request
May 29, 2026
## Description ray-project#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. This PR removes all of Train's ignores then uses Claude to fix all the docstrings / type hints (and reviewed by me to confirm implementations). --------- Signed-off-by: Mark Towers <[email protected]> Co-authored-by: Mark Towers <[email protected]> Signed-off-by: Alexandr Plashchinsky <[email protected]>
alexandrplashchinsky
pushed a commit
to alexandrplashchinsky/ray-alex
that referenced
this pull request
May 29, 2026
…#63518) ## Description ray-project#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 the Ray Util ignores then uses Claude to fix all the docstrings / type hints (and reviewed by me to confirm implementations). --------- Signed-off-by: Mark Towers <[email protected]> Co-authored-by: Mark Towers <[email protected]> Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]> Signed-off-by: Alexandr Plashchinsky <[email protected]>
edoakes
pushed a commit
that referenced
this pull request
Jun 8, 2026
…nt (#63632) #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 the ray serve and llm ignores then uses Claude to fix all the docstrings / type hints (and reviewed by me to confirm implementations). --------- Signed-off-by: Mark Towers <[email protected]> Co-authored-by: Mark Towers <[email protected]>
edoakes
added a commit
that referenced
this pull request
Jun 8, 2026
#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 the `ray._private` ignores then uses Claude to fix all the docstrings / type hints (and reviewed by me to confirm implementations). --------- Signed-off-by: Mark Towers <[email protected]> Co-authored-by: Mark Towers <[email protected]> Co-authored-by: Edward Oakes <[email protected]>
edoakes
pushed a commit
that referenced
this pull request
Jun 8, 2026
…3633) #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 the ray dashboard ignores then uses Claude to fix all the docstrings / type hints (and reviewed by me to confirm implementations). --------- Signed-off-by: Mark Towers <[email protected]> Co-authored-by: Mark Towers <[email protected]>
edoakes
pushed a commit
that referenced
this pull request
Jun 9, 2026
…#63571) #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 the `ray.autoscaler` ignores then uses Claude to fix all the docstrings / type hints (and reviewed by me to confirm implementations). --------- Signed-off-by: Mark Towers <[email protected]> Co-authored-by: Mark Towers <[email protected]>
ArturNiederfahrenhorst
pushed a commit
that referenced
this pull request
Jun 9, 2026
…#63634) #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 the ray data and dag ignores then uses Claude to fix all the docstrings / type hints (and reviewed by me to confirm implementations). --------- Signed-off-by: Mark Towers <[email protected]> Co-authored-by: Mark Towers <[email protected]>
sampan-s-nayak
pushed a commit
to sampan-s-nayak/ray
that referenced
this pull request
Jun 10, 2026
…nt (ray-project#63632) ray-project#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 the ray serve and llm ignores then uses Claude to fix all the docstrings / type hints (and reviewed by me to confirm implementations). --------- Signed-off-by: Mark Towers <[email protected]> Co-authored-by: Mark Towers <[email protected]>
sampan-s-nayak
pushed a commit
to sampan-s-nayak/ray
that referenced
this pull request
Jun 10, 2026
…oject#63541) ray-project#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 the `ray._private` ignores then uses Claude to fix all the docstrings / type hints (and reviewed by me to confirm implementations). --------- Signed-off-by: Mark Towers <[email protected]> Co-authored-by: Mark Towers <[email protected]> Co-authored-by: Edward Oakes <[email protected]>
sampan-s-nayak
pushed a commit
to sampan-s-nayak/ray
that referenced
this pull request
Jun 10, 2026
…y-project#63633) ray-project#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 the ray dashboard ignores then uses Claude to fix all the docstrings / type hints (and reviewed by me to confirm implementations). --------- Signed-off-by: Mark Towers <[email protected]> Co-authored-by: Mark Towers <[email protected]>
sampan-s-nayak
pushed a commit
to sampan-s-nayak/ray
that referenced
this pull request
Jun 10, 2026
…ray-project#63571) ray-project#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 the `ray.autoscaler` ignores then uses Claude to fix all the docstrings / type hints (and reviewed by me to confirm implementations). --------- Signed-off-by: Mark Towers <[email protected]> Co-authored-by: Mark Towers <[email protected]>
sampan-s-nayak
pushed a commit
to sampan-s-nayak/ray
that referenced
this pull request
Jun 10, 2026
…ray-project#63634) ray-project#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 the ray data and dag ignores then uses Claude to fix all the docstrings / type hints (and reviewed by me to confirm implementations). --------- Signed-off-by: Mark Towers <[email protected]> Co-authored-by: Mark Towers <[email protected]>
ArturNiederfahrenhorst
pushed a commit
that referenced
this pull request
Jun 10, 2026
#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 the ray core ignores then uses Claude to fix all the docstrings / type hints (and reviewed by me to confirm implementations). --------- Signed-off-by: Mark Towers <[email protected]> Co-authored-by: Mark Towers <[email protected]>
limarkdcunha
pushed a commit
to limarkdcunha/ray
that referenced
this pull request
Jun 30, 2026
…nt (ray-project#63632) ray-project#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 the ray serve and llm ignores then uses Claude to fix all the docstrings / type hints (and reviewed by me to confirm implementations). --------- Signed-off-by: Mark Towers <[email protected]> Co-authored-by: Mark Towers <[email protected]>
limarkdcunha
pushed a commit
to limarkdcunha/ray
that referenced
this pull request
Jun 30, 2026
…oject#63541) ray-project#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 the `ray._private` ignores then uses Claude to fix all the docstrings / type hints (and reviewed by me to confirm implementations). --------- Signed-off-by: Mark Towers <[email protected]> Co-authored-by: Mark Towers <[email protected]> Co-authored-by: Edward Oakes <[email protected]>
limarkdcunha
pushed a commit
to limarkdcunha/ray
that referenced
this pull request
Jun 30, 2026
…y-project#63633) ray-project#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 the ray dashboard ignores then uses Claude to fix all the docstrings / type hints (and reviewed by me to confirm implementations). --------- Signed-off-by: Mark Towers <[email protected]> Co-authored-by: Mark Towers <[email protected]>
limarkdcunha
pushed a commit
to limarkdcunha/ray
that referenced
this pull request
Jun 30, 2026
…ray-project#63571) ray-project#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 the `ray.autoscaler` ignores then uses Claude to fix all the docstrings / type hints (and reviewed by me to confirm implementations). --------- Signed-off-by: Mark Towers <[email protected]> Co-authored-by: Mark Towers <[email protected]>
limarkdcunha
pushed a commit
to limarkdcunha/ray
that referenced
this pull request
Jun 30, 2026
…ray-project#63634) ray-project#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 the ray data and dag ignores then uses Claude to fix all the docstrings / type hints (and reviewed by me to confirm implementations). --------- Signed-off-by: Mark Towers <[email protected]> Co-authored-by: Mark Towers <[email protected]>
limarkdcunha
pushed a commit
to limarkdcunha/ray
that referenced
this pull request
Jun 30, 2026
…63639) ray-project#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 the ray core ignores then uses Claude to fix all the docstrings / type hints (and reviewed by me to confirm implementations). --------- Signed-off-by: Mark Towers <[email protected]> Co-authored-by: Mark Towers <[email protected]>
400Ping
pushed a commit
to 400Ping/ray
that referenced
this pull request
Aug 18, 2026
## Description ray-project#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. This PR removes all of Train's ignores then uses Claude to fix all the docstrings / type hints (and reviewed by me to confirm implementations). --------- Signed-off-by: Mark Towers <[email protected]> Co-authored-by: Mark Towers <[email protected]> Signed-off-by: 400Ping <[email protected]>
400Ping
pushed a commit
to 400Ping/ray
that referenced
this pull request
Aug 18, 2026
…#63518) ## Description ray-project#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 the Ray Util ignores then uses Claude to fix all the docstrings / type hints (and reviewed by me to confirm implementations). --------- Signed-off-by: Mark Towers <[email protected]> Co-authored-by: Mark Towers <[email protected]> Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]> Signed-off-by: 400Ping <[email protected]>
400Ping
pushed a commit
to 400Ping/ray
that referenced
this pull request
Aug 18, 2026
ray-project#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 <[email protected]> Co-authored-by: Mark Towers <[email protected]> Signed-off-by: 400Ping <[email protected]>
400Ping
pushed a commit
to 400Ping/ray
that referenced
this pull request
Aug 18, 2026
## Description ray-project#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 AIR's ignores then uses Claude to fix all the docstrings / type hints (and reviewed by me to confirm implementations). --------- Signed-off-by: Mark Towers <[email protected]> Co-authored-by: Mark Towers <[email protected]> Signed-off-by: 400Ping <[email protected]>
400Ping
pushed a commit
to 400Ping/ray
that referenced
this pull request
Aug 18, 2026
…nt (ray-project#63632) ray-project#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 the ray serve and llm ignores then uses Claude to fix all the docstrings / type hints (and reviewed by me to confirm implementations). --------- Signed-off-by: Mark Towers <[email protected]> Co-authored-by: Mark Towers <[email protected]> Signed-off-by: 400Ping <[email protected]>
400Ping
pushed a commit
to 400Ping/ray
that referenced
this pull request
Aug 18, 2026
…oject#63541) ray-project#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 the `ray._private` ignores then uses Claude to fix all the docstrings / type hints (and reviewed by me to confirm implementations). --------- Signed-off-by: Mark Towers <[email protected]> Co-authored-by: Mark Towers <[email protected]> Co-authored-by: Edward Oakes <[email protected]> Signed-off-by: 400Ping <[email protected]>
400Ping
pushed a commit
to 400Ping/ray
that referenced
this pull request
Aug 18, 2026
…y-project#63633) ray-project#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 the ray dashboard ignores then uses Claude to fix all the docstrings / type hints (and reviewed by me to confirm implementations). --------- Signed-off-by: Mark Towers <[email protected]> Co-authored-by: Mark Towers <[email protected]> Signed-off-by: 400Ping <[email protected]>
400Ping
pushed a commit
to 400Ping/ray
that referenced
this pull request
Aug 18, 2026
…ray-project#63571) ray-project#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 the `ray.autoscaler` ignores then uses Claude to fix all the docstrings / type hints (and reviewed by me to confirm implementations). --------- Signed-off-by: Mark Towers <[email protected]> Co-authored-by: Mark Towers <[email protected]> Signed-off-by: 400Ping <[email protected]>
400Ping
pushed a commit
to 400Ping/ray
that referenced
this pull request
Aug 18, 2026
…ray-project#63634) ray-project#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 the ray data and dag ignores then uses Claude to fix all the docstrings / type hints (and reviewed by me to confirm implementations). --------- Signed-off-by: Mark Towers <[email protected]> Co-authored-by: Mark Towers <[email protected]> Signed-off-by: 400Ping <[email protected]>
400Ping
pushed a commit
to 400Ping/ray
that referenced
this pull request
Aug 18, 2026
…63639) ray-project#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 the ray core ignores then uses Claude to fix all the docstrings / type hints (and reviewed by me to confirm implementations). --------- Signed-off-by: Mark Towers <[email protected]> Co-authored-by: Mark Towers <[email protected]> Signed-off-by: 400Ping <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why are these changes needed?
Right now the docstring's across Ray's code base are very inconsistent which leads to a number of problems when they are parsed by Sphynx to generate documentation, and are otherwise just harder for folks to read.
This adds https://github.com/jsh9/pydoclint to the pre-commit checks to validate that we're meeting a minimum standard that should keep things working (it currently excludes several settings that should probably not be excluded, but they significantly reduce the size of the ratchet file).
This PR also includes an allowlist of everything that is currently failing as of commit 25ea331. We'll circle back around over time and fix these, but it should currently operate as a ratchet and only allow the exact set of existing failures to persist.
This is likely to generate some logical merge conflicts over the next week or two as PRs are merged that were not based after this was merged, we'll fix them in follow up PRs instead of trying to coordinate a global rollout.
Related issue number
We merged a number of fix PRs already to address basic structural problems in a lot of docstrings:
Checks
git commit -s) in this PR.scripts/format.shto lint the changes in this PR.method in Tune, I've added it in
doc/source/tune/api/under thecorresponding
.rstfile.