Repository navigation
[Doc] Turn on nitpicky mode - #46103
Merged
can-anyscale merged 2 commits intoJun 24, 2024
Merged
Conversation
Signed-off-by: pdmurray <[email protected]>
peytondmurray
force-pushed
the
39658-turn-on-nitpicky-mode
branch
from
June 20, 2024 19:18
afc2a47 to
ba4a641
Compare
peytondmurray
marked this pull request as ready for review
June 20, 2024 20:13
can-anyscale
left a comment
Contributor
There was a problem hiding this comment.
thanks for working on this
Signed-off-by: pdmurray <[email protected]>
Contributor
|
this is breaking doc build in master i believe https://buildkite.com/ray-project/postmerge/builds/5103#01904cb8-8310-456d-bcd2-146a52e30d93; reverting to unblock |
can-anyscale
added a commit
that referenced
this pull request
Jun 25, 2024
This reverts commit 4819eec.
can-anyscale
added a commit
that referenced
this pull request
Jun 25, 2024
ronny-anyscale
added a commit
that referenced
this pull request
Aug 3, 2026
Five days on from the last refresh, 3 of 26 inventories had drifted. All 26
downloaded cleanly; only these three changed:
python 3.14 +4 / -0 (PyErr_Display and its params)
transformers main +12 / -0 (GraniteMoeSWA* model docs)
pydantic - +0 / -33
Refreshing at this point rather than at merge time is deliberate. The snapshots
only need to be current when resolution flips from live fetches to the committed
files, and that happens the moment this merges -- which, with `go` already on, is
not a moment we control. A doc PR merged during the staleness window is built
against live inventories, so a cross-reference to a symbol upstream shipped in
the interim passes there and would only fail once master starts resolving from
disk.
The pydantic removals are the silent direction this change exists to catch:
pydantic dropped its re-exported pydantic-core internals (pydantic.main and
pydantic.plugin SchemaSerializer/SchemaValidator/ValidationError,
pydantic.types.PydanticCustomError, __pydantic_core_version__). Verified that
nothing under doc/source or python/ray references any of the 33, so no
cross-reference goes dead here; separately, conf.py's nitpick_ignore_regex
carries a blanket ("py:class", ".*") from #46103, so class references are not
what a -W build would have caught anyway.
Signed-off-by: Ronny Roland <[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?
This PR prevents developers from breaking internal sphinx references by causing the docs build to fail if a broken reference is found.
Previously, broken references would simply be rendered as inline code but now they will raise an exception during the build process. It will be the responsibility of the developer who changes/adds/removes APIs or documentation to ensure the documentation is updated accordingly.
Furthermore, single backticks (
`) will now default to just being rendered as code; previously Sphinx considered anything in single backticks a reference. Most developers who touch documentation are familiar with markdown rather than RST, and use single backticks to denote code although it is not valid RST syntax for code (RST uses double backticks). As a result, there are many many places in the documentation that use single backticks to mean code, and it would be impractical to expect contributors to adhere strictly to RST syntax when everyone is used to markdown. So instead we modify thedefault_roleto eliminate this problem entirely, and treat anything in single backticks as code.Related issue number
Closes #39658. Currently blocked by #46102; will mark this as ready once that PR is merged.
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.