Repository navigation
[CI] Clear whitespace debt in doc/source/data and drop the pre-commit carve-out - #65425
Merged
bveeramani merged 1 commit intoSep 21, 2026
Merged
Conversation
|
This pull request has been automatically marked as stale because it has not had You can always ask for help on our discussion forum or Ray's public slack channel. If you'd like to keep this open, just leave any comment, and the stale label will be removed. |
dstrodtman
force-pushed
the
doc-1475-data-whitespace-cleanup
branch
from
September 4, 2026 18:52
98e9155 to
9c0550d
Compare
dstrodtman
marked this pull request as ready for review
September 4, 2026 19:52
Contributor
There was a problem hiding this comment.
Code Review
This pull request removes the exclusion of the doc/source/data/ directory from the trailing-whitespace and end-of-file-fixer pre-commit hooks, and cleans up trailing whitespaces and empty lines at the end of files across various documentation files in that directory. I have no feedback to provide.
… carve-out Signed-off-by: Douglas Strodtman <[email protected]>
dstrodtman
force-pushed
the
doc-1475-data-whitespace-cleanup
branch
from
September 21, 2026 16:02
bf86927 to
3efb13e
Compare
bveeramani
approved these changes
Sep 21, 2026
bveeramani
enabled auto-merge (squash)
September 21, 2026 16:10
owenowenisme
pushed a commit
to owenowenisme/ray
that referenced
this pull request
Sep 23, 2026
… carve-out (ray-project#65425) ## Why ray-project#65375 fixed a pre-commit `exclude` bug that had kept the `vale` hook from matching any files. Narrowing that exclude so Vale can see `doc/source/data` prose also exposed those files to `trailing-whitespace` and `end-of-file-fixer` for the first time. Rather than make a config-only change rewrite unrelated prose files, ray-project#65375 exempted the two hooks from the directory and deferred the cleanup. This is that cleanup. ## What 1. Removes both `exclude: ^doc/source/data/` lines that ray-project#65375 added, along with the comments explaining them. 2. Runs `trailing-whitespace` and `end-of-file-fixer` over the Markdown and rST files under `doc/source/data`. That rewrites 14 of them: trailing spaces trimmed, missing final newlines added. No content changes. `git diff --ignore-all-space --ignore-blank-lines -- doc/source/data` is empty, so the whole prose diff is whitespace. Both hooks now pass `--all-files`. ## Not in scope The `semgrep` exemption on the same directory stays. It covers pre-existing `code-block-python` violations, which want a real fix rather than a whitespace pass. ## Reviewing this A pure-whitespace diff is only reviewable when nothing else is in it, which is the point of keeping it as its own PR. `git diff -w` showing nothing is the check that matters. Signed-off-by: Douglas Strodtman <[email protected]>
nadongjun
pushed a commit
to nadongjun/ray
that referenced
this pull request
Oct 6, 2026
… carve-out (ray-project#65425) ## Why ray-project#65375 fixed a pre-commit `exclude` bug that had kept the `vale` hook from matching any files. Narrowing that exclude so Vale can see `doc/source/data` prose also exposed those files to `trailing-whitespace` and `end-of-file-fixer` for the first time. Rather than make a config-only change rewrite unrelated prose files, ray-project#65375 exempted the two hooks from the directory and deferred the cleanup. This is that cleanup. ## What 1. Removes both `exclude: ^doc/source/data/` lines that ray-project#65375 added, along with the comments explaining them. 2. Runs `trailing-whitespace` and `end-of-file-fixer` over the Markdown and rST files under `doc/source/data`. That rewrites 14 of them: trailing spaces trimmed, missing final newlines added. No content changes. `git diff --ignore-all-space --ignore-blank-lines -- doc/source/data` is empty, so the whole prose diff is whitespace. Both hooks now pass `--all-files`. ## Not in scope The `semgrep` exemption on the same directory stays. It covers pre-existing `code-block-python` violations, which want a real fix rather than a whitespace pass. ## Reviewing this A pure-whitespace diff is only reviewable when nothing else is in it, which is the point of keeping it as its own PR. `git diff -w` showing nothing is the check that matters. Signed-off-by: Douglas Strodtman <[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
#65375 fixed a pre-commit
excludebug that had kept thevalehook from matching any files. Narrowing that exclude so Vale can seedoc/source/dataprose also exposed those files totrailing-whitespaceandend-of-file-fixerfor the first time. Rather than make a config-only change rewrite unrelated prose files, #65375 exempted the two hooks from the directory and deferred the cleanup. This is that cleanup.What
exclude: ^doc/source/data/lines that [CI] Make the Vale pre-commit hook run, and upgrade Vale to 3.17.1 #65375 added, along with the comments explaining them.trailing-whitespaceandend-of-file-fixerover the Markdown and rST files underdoc/source/data. That rewrites 14 of them: trailing spaces trimmed, missing final newlines added.No content changes.
git diff --ignore-all-space --ignore-blank-lines -- doc/source/datais empty, so the whole prose diff is whitespace. Both hooks now pass--all-files.Not in scope
The
semgrepexemption on the same directory stays. It covers pre-existingcode-block-pythonviolations, which want a real fix rather than a whitespace pass.Reviewing this
A pure-whitespace diff is only reviewable when nothing else is in it, which is the point of keeping it as its own PR.
git diff -wshowing nothing is the check that matters.