Skip to content

[3.11] Restore default role check in make check. (GH-92290) #92821

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Doc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,10 @@ dist:
rm dist/python-$(DISTVERSION)-docs-texinfo.tar

check:
$(SPHINXLINT) -i tools -i $(VENVDIR) -i README.rst
$(SPHINXLINT) ../Misc/NEWS.d/next/
# Check the docs and NEWS files with sphinx-lint.
# Ignore the tools and venv dirs and check that the default role is not used.
$(SPHINXLINT) -i tools -i $(VENVDIR) --enable default-role
$(SPHINXLINT) --enable default-role ../Misc/NEWS.d/next/

serve:
@echo "The serve target was removed, use htmlview instead (see bpo-36329)"
Expand Down
2 changes: 1 addition & 1 deletion Doc/library/datetime.rst
Original file line number Diff line number Diff line change
Expand Up @@ -998,7 +998,7 @@ Other constructors, all class methods:
ISO 8601 format, with the following exceptions:

1. Time zone offsets may have fractional seconds.
2. The `T` separator may be replaced by any single unicode character.
2. The ``T`` separator may be replaced by any single unicode character.
3. Ordinal dates are not currently supported.
4. Fractional hours and minutes are not supported.

Expand Down
4 changes: 2 additions & 2 deletions Doc/library/enum.rst
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,11 @@ Module Contents

:func:`member`

Make `obj` a member. Can be used as a decorator.
Make ``obj`` a member. Can be used as a decorator.

:func:`nonmember`

Do not make `obj` a member. Can be used as a decorator.
Do not make ``obj`` a member. Can be used as a decorator.


.. versionadded:: 3.6 ``Flag``, ``IntFlag``, ``auto``
Expand Down
5 changes: 4 additions & 1 deletion Doc/make.bat
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,10 @@ if EXIST "%BUILDDIR%\html\index.html" (
goto end

:check
cmd /S /C "%SPHINXLINT% -i tools"
rem Check the docs and NEWS files with sphinx-lint.
rem Ignore the tools dir and check that the default role is not used.
cmd /S /C "%SPHINXLINT% -i tools --enable default-role"
cmd /S /C "%SPHINXLINT% --enable default-role ..\Misc\NEWS.d\next\ "
goto end

:serve
Expand Down