Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32k
gh-101100: Docs: Check Sphinx warnings and fail if improved#106460
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Marked as draft to make some temporary commits to demonstrate errors. First, the new check finds five files that no longer contain warnings!
https://github.com/python/cpython/actions/runs/5468129112/jobs/9955353278?pr=106460 Some of these files were deleted along withPEP 594's dead batteries. Others have been "accidentally" fixed since |
hugovk commentedJul 5, 2023 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Adding a (temporary) warning to
Plus the file is annotated. https://github.com/python/cpython/actions/runs/5468217855/jobs/9955568557?pr=106460 (Edit: output updated per3522e2c) |
Updating from main finds a new file that's been fixed! 🎉
|
Thanks@hugovk for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12. |
Sorry@hugovk, I had trouble checking out the |
3.12 doesn't yet have the refactored |
Looks like that was landed and this is required to backport#108065 , so retrying the backport. |
Thanks@hugovk for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12. |
Sorry,@hugovk, I could not cleanly backport this to |
…thon#106460)(cherry picked from commit806d7c9)
…ved (pythonGH-106460).(cherry picked from commit806d7c9)Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
bedevere-bot commentedAug 18, 2023
GH-108116 is a backport of this pull request to the3.12 branch. |
Had to manually backport it due to conflicts in .nitignore, and might need to resolve a few additional discrepancies there once it builds. |
…ved (pythonGH-106460).(cherry picked from commit806d7c9)Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
…H-106460) (#108116)*gh-101100: Docs: Check Sphinx warnings and fail if improved (#106460)(cherry picked from commit806d7c9)* [3.12]gh-101100: Docs: Check Sphinx warnings and fail if improved (GH-106460).(cherry picked from commit806d7c9)Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>---------Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Uh oh!
There was an error while loading.Please reload this page.
Recently I improved some colour contrast forPygments, and they have a file of current contrast ratios. If they're improved by a PR, the CI willfail to make sure the ratio constants are updated, to ensure continual improvement with no regressions.
This is a good idea!
Let's add it here, to check if any files in
.nitignore
(which may have Sphinx warnings) switch to having no warnings. Then we can remove them from.nitignore
to make sure they remain free of warnings.I was going to add another Sphinx build, a fourth, to touch the relevant files, so only those would be rebuilt. But four builds is far too many!
Instead, let's build only once and save the warnings to a file. Then we can process the file and do the three phases:
.nitignore
(new!)📚 Documentation preview 📚:https://cpython-previews--106460.org.readthedocs.build/