Skip to content

Adds pydoclint to pre-commit - #52974

Merged
thomasdesr merged 1 commit into
ray-project:masterfrom
thomasdesr:thomas/add-pydoclint
May 13, 2025
Merged

thomasdesr merged 1 commit into
ray-project:masterfrom
thomasdesr:thomas/add-pydoclint

Conversation

@thomasdesr

@thomasdesr thomasdesr commented May 13, 2025 •

Copy link
Copy Markdown
Collaborator

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:

  • probably more xD

Checks

Signed-off-by: Thomas Desrosiers <[email protected]>
@aslonnie

Copy link
Copy Markdown
Contributor

cc @MortalHappiness , a stellar example from @thomasdesr of how lints are applied repo wide.

@thomasdesr
thomasdesr enabled auto-merge (squash) May 13, 2025 21:36
@github-actions github-actions Bot added the go add ONLY when ready to merge, run all tests label May 13, 2025
@thomasdesr
thomasdesr merged commit b4b6787 into ray-project:master May 13, 2025
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]>
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]>
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-backlog go add ONLY when ready to merge, run all tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants