Skip to content

[CI] Clear whitespace debt in doc/source/data and drop the pre-commit carve-out - #65425

Merged
bveeramani merged 1 commit into
ray-project:masterfrom
dstrodtman:doc-1475-data-whitespace-cleanup
Sep 21, 2026
Merged

bveeramani merged 1 commit into
ray-project:masterfrom
dstrodtman:doc-1475-data-whitespace-cleanup

Conversation

@dstrodtman

@dstrodtman dstrodtman commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

Why

#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, #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 [CI] Make the Vale pre-commit hook run, and upgrade Vale to 3.17.1 #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.

@github-actions

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had
any activity for 14 days. It will be closed in another 14 days if no further activity occurs.
Thank you for your contributions.

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.

@github-actions github-actions Bot added the stale The issue is stale. It will be closed within 7 days unless there are further conversation label Aug 27, 2026
@dstrodtman
dstrodtman force-pushed the doc-1475-data-whitespace-cleanup branch from 98e9155 to 9c0550d Compare September 4, 2026 18:52
@dstrodtman dstrodtman added unstale A PR that has been marked unstale. It will not get marked stale again if this label is on it. and removed stale The issue is stale. It will be closed within 7 days unless there are further conversation labels Sep 4, 2026
@dstrodtman
dstrodtman marked this pull request as ready for review September 4, 2026 19:52
@dstrodtman
dstrodtman requested review from a team as code owners September 4, 2026 19:52
@dstrodtman dstrodtman added go add ONLY when ready to merge, run all tests docs-go RtD-only checks for docs-only changes. Doesn't run full library doc-test suites. and removed docs-go RtD-only checks for docs-only changes. Doesn't run full library doc-test suites. labels Sep 4, 2026

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

Copy link
Copy Markdown
Contributor

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 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.

@ray-gardener ray-gardener Bot added docs An issue or change related to documentation core Issues that should be addressed in Ray Core data Ray Data-related issues devprod labels Sep 5, 2026
@dstrodtman
dstrodtman force-pushed the doc-1475-data-whitespace-cleanup branch from bf86927 to 3efb13e Compare September 21, 2026 16:02
@bveeramani
bveeramani enabled auto-merge (squash) September 21, 2026 16:10
@bveeramani
bveeramani merged commit 5bef71b into ray-project:master Sep 21, 2026
7 checks passed
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Issues that should be addressed in Ray Core data Ray Data-related issues devprod docs An issue or change related to documentation go add ONLY when ready to merge, run all tests unstale A PR that has been marked unstale. It will not get marked stale again if this label is on it.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants