[Python-checkins] Run sphinx-lint on Misc/NEWS.d/next/ (#108212)

hugovk webhook-mailer at python.org
Mon Aug 21 09:13:59 EDT 2023


https://github.com/python/cpython/commit/71962e5237bb7e12d8fc1447b8ed8ba082e23f77
commit: 71962e5237bb7e12d8fc1447b8ed8ba082e23f77
branch: main
author: Hugo van Kemenade <hugovk at users.noreply.github.com>
committer: hugovk <hugovk at users.noreply.github.com>
date: 2023-08-21T13:13:55Z
summary:

Run sphinx-lint on Misc/NEWS.d/next/ (#108212)

Co-authored-by: Alex Waygood <Alex.Waygood at Gmail.com>

files:
M .pre-commit-config.yaml
M Misc/NEWS.d/next/Build/2023-07-28-18-17-33.gh-issue-106881.U3Ezdq.rst
M Misc/NEWS.d/next/Core and Builtins/2023-06-24-10-34-27.gh-issue-105775.OqjoGV.rst
M Misc/NEWS.d/next/Core and Builtins/2023-07-04-04-50-14.gh-issue-100288.yNQ1ez.rst
M Misc/NEWS.d/next/Core and Builtins/2023-07-27-11-18-04.gh-issue-106078.WEy2Yn.rst
M Misc/NEWS.d/next/Core and Builtins/2023-07-27-11-47-29.gh-issue-104432.oGHF-z.rst
M Misc/NEWS.d/next/Library/2020-05-03-00-33-15.bpo-18319.faPTlx.rst
M Misc/NEWS.d/next/Library/2023-06-25-12-28-55.gh-issue-106075.W7tMRb.rst
M Misc/NEWS.d/next/Library/2023-06-30-16-42-44.gh-issue-106263.tk-t93.rst
M Misc/NEWS.d/next/Library/2023-07-14-16-54-13.gh-issue-106752.BT1Yxw.rst
M Misc/NEWS.d/next/Library/2023-07-16-10-40-34.gh-issue-106789.NvyE3C.rst
M Misc/NEWS.d/next/Library/2023-07-22-21-57-34.gh-issue-107089.Dnget2.rst
M Misc/NEWS.d/next/Library/2023-08-07-14-12-07.gh-issue-107715.238r2f.rst
M Misc/NEWS.d/next/Library/2023-08-17-14-45-25.gh-issue-105736.NJsH7r.rst

diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 85a6de4abe014..451cbe8bc8482 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -14,5 +14,5 @@ repos:
     hooks:
       - id: sphinx-lint
         args: [--enable=default-role]
-        files: ^Doc/
+        files: ^Doc/|^Misc/NEWS.d/next/
         types: [rst]
diff --git a/Misc/NEWS.d/next/Build/2023-07-28-18-17-33.gh-issue-106881.U3Ezdq.rst b/Misc/NEWS.d/next/Build/2023-07-28-18-17-33.gh-issue-106881.U3Ezdq.rst
index 40b2609e95c7e..7febf99c48a79 100644
--- a/Misc/NEWS.d/next/Build/2023-07-28-18-17-33.gh-issue-106881.U3Ezdq.rst
+++ b/Misc/NEWS.d/next/Build/2023-07-28-18-17-33.gh-issue-106881.U3Ezdq.rst
@@ -1 +1 @@
-Check for `linux/limits.h` before including it in `Modules/posixmodule.c`.
+Check for ``linux/limits.h`` before including it in ``Modules/posixmodule.c``.
diff --git a/Misc/NEWS.d/next/Core and Builtins/2023-06-24-10-34-27.gh-issue-105775.OqjoGV.rst b/Misc/NEWS.d/next/Core and Builtins/2023-06-24-10-34-27.gh-issue-105775.OqjoGV.rst
index 27d0e9929794f..57a30f601379c 100644
--- a/Misc/NEWS.d/next/Core and Builtins/2023-06-24-10-34-27.gh-issue-105775.OqjoGV.rst	
+++ b/Misc/NEWS.d/next/Core and Builtins/2023-06-24-10-34-27.gh-issue-105775.OqjoGV.rst	
@@ -1 +1 @@
-:opcode:`LOAD_CLOSURE` is now a pseudo-op.
\ No newline at end of file
+:opcode:`LOAD_CLOSURE` is now a pseudo-op.
diff --git a/Misc/NEWS.d/next/Core and Builtins/2023-07-04-04-50-14.gh-issue-100288.yNQ1ez.rst b/Misc/NEWS.d/next/Core and Builtins/2023-07-04-04-50-14.gh-issue-100288.yNQ1ez.rst
index faf43bd0c2f48..0d074ffa9942d 100644
--- a/Misc/NEWS.d/next/Core and Builtins/2023-07-04-04-50-14.gh-issue-100288.yNQ1ez.rst	
+++ b/Misc/NEWS.d/next/Core and Builtins/2023-07-04-04-50-14.gh-issue-100288.yNQ1ez.rst	
@@ -1,3 +1,2 @@
 Specialize :opcode:`LOAD_ATTR` for non-descriptors on the class. Adds
-:opcode:`LOAD_ATTR_NONDESCRIPTOR_WITH_VALUES` and :opcode
-`LOAD_ATTR_NONDESCRIPTOR_NO_DICT`.
+:opcode:`LOAD_ATTR_NONDESCRIPTOR_WITH_VALUES` and :opcode:`LOAD_ATTR_NONDESCRIPTOR_NO_DICT`.
diff --git a/Misc/NEWS.d/next/Core and Builtins/2023-07-27-11-18-04.gh-issue-106078.WEy2Yn.rst b/Misc/NEWS.d/next/Core and Builtins/2023-07-27-11-18-04.gh-issue-106078.WEy2Yn.rst
index f5a0e539e5d05..60d3304a3fab9 100644
--- a/Misc/NEWS.d/next/Core and Builtins/2023-07-27-11-18-04.gh-issue-106078.WEy2Yn.rst	
+++ b/Misc/NEWS.d/next/Core and Builtins/2023-07-27-11-18-04.gh-issue-106078.WEy2Yn.rst	
@@ -1 +1 @@
-Isolate :mod:`!_decimal` (apply :pep:`687`). Patch by Charlie Zhao.
\ No newline at end of file
+Isolate :mod:`!_decimal` (apply :pep:`687`). Patch by Charlie Zhao.
diff --git a/Misc/NEWS.d/next/Core and Builtins/2023-07-27-11-47-29.gh-issue-104432.oGHF-z.rst b/Misc/NEWS.d/next/Core and Builtins/2023-07-27-11-47-29.gh-issue-104432.oGHF-z.rst
index e47927b4e1188..a9ab5cd43f0ff 100644
--- a/Misc/NEWS.d/next/Core and Builtins/2023-07-27-11-47-29.gh-issue-104432.oGHF-z.rst	
+++ b/Misc/NEWS.d/next/Core and Builtins/2023-07-27-11-47-29.gh-issue-104432.oGHF-z.rst	
@@ -1,4 +1,4 @@
 Fix potential unaligned memory access on C APIs involving returned sequences
-of `char *` pointers within the :mod:`grp` and :mod:`socket` modules. These
+of ``char *`` pointers within the :mod:`grp` and :mod:`socket` modules. These
 were revealed using a ``-fsaniziter=alignment`` build on ARM macOS. Patch by
 Christopher Chavez.
diff --git a/Misc/NEWS.d/next/Library/2020-05-03-00-33-15.bpo-18319.faPTlx.rst b/Misc/NEWS.d/next/Library/2020-05-03-00-33-15.bpo-18319.faPTlx.rst
index a1a4cf6d63725..94d7cc9deadbb 100644
--- a/Misc/NEWS.d/next/Library/2020-05-03-00-33-15.bpo-18319.faPTlx.rst
+++ b/Misc/NEWS.d/next/Library/2020-05-03-00-33-15.bpo-18319.faPTlx.rst
@@ -1,2 +1,2 @@
-Ensure `gettext(msg)` retrieve translations even if a plural form exists. In
-other words: `gettext(msg) == ngettext(msg, '', 1)`.
+Ensure ``gettext(msg)`` retrieve translations even if a plural form exists. In
+other words: ``gettext(msg) == ngettext(msg, '', 1)``.
diff --git a/Misc/NEWS.d/next/Library/2023-06-25-12-28-55.gh-issue-106075.W7tMRb.rst b/Misc/NEWS.d/next/Library/2023-06-25-12-28-55.gh-issue-106075.W7tMRb.rst
index d2687154a5859..0c24ff70334e1 100644
--- a/Misc/NEWS.d/next/Library/2023-06-25-12-28-55.gh-issue-106075.W7tMRb.rst
+++ b/Misc/NEWS.d/next/Library/2023-06-25-12-28-55.gh-issue-106075.W7tMRb.rst
@@ -1 +1 @@
-Added `asyncio.taskgroups.__all__` to `asyncio.__all__` for export in star imports.
+Added ``asyncio.taskgroups.__all__`` to ``asyncio.__all__`` for export in star imports.
diff --git a/Misc/NEWS.d/next/Library/2023-06-30-16-42-44.gh-issue-106263.tk-t93.rst b/Misc/NEWS.d/next/Library/2023-06-30-16-42-44.gh-issue-106263.tk-t93.rst
index 23763818d84ba..d86a6bfdabbfb 100644
--- a/Misc/NEWS.d/next/Library/2023-06-30-16-42-44.gh-issue-106263.tk-t93.rst
+++ b/Misc/NEWS.d/next/Library/2023-06-30-16-42-44.gh-issue-106263.tk-t93.rst
@@ -1,2 +1,2 @@
 Fix crash when calling ``repr`` with a manually constructed SignalDict object.
-Patch by Charlie Zhao.
\ No newline at end of file
+Patch by Charlie Zhao.
diff --git a/Misc/NEWS.d/next/Library/2023-07-14-16-54-13.gh-issue-106752.BT1Yxw.rst b/Misc/NEWS.d/next/Library/2023-07-14-16-54-13.gh-issue-106752.BT1Yxw.rst
index bbc53d76decbc..bcda64153413d 100644
--- a/Misc/NEWS.d/next/Library/2023-07-14-16-54-13.gh-issue-106752.BT1Yxw.rst
+++ b/Misc/NEWS.d/next/Library/2023-07-14-16-54-13.gh-issue-106752.BT1Yxw.rst
@@ -1,4 +1,4 @@
-Fixed several bugs in zipfile.Path, including: in ``Path.match`, Windows
+Fixed several bugs in zipfile.Path, including: in :meth:`zipfile.Path.match`, Windows
 separators are no longer honored (and never were meant to be); Fixed
 ``name``/``suffix``/``suffixes``/``stem`` operations when no filename is
 present and the Path is not at the root of the zipfile; Reworked glob for
diff --git a/Misc/NEWS.d/next/Library/2023-07-16-10-40-34.gh-issue-106789.NvyE3C.rst b/Misc/NEWS.d/next/Library/2023-07-16-10-40-34.gh-issue-106789.NvyE3C.rst
index 532f8059740da..b9cf35adf9552 100644
--- a/Misc/NEWS.d/next/Library/2023-07-16-10-40-34.gh-issue-106789.NvyE3C.rst
+++ b/Misc/NEWS.d/next/Library/2023-07-16-10-40-34.gh-issue-106789.NvyE3C.rst
@@ -1 +1 @@
-Remove import of :mod:``pprint`` from :mod:``sysconfig``.
+Remove import of :mod:`pprint` from :mod:`sysconfig`.
diff --git a/Misc/NEWS.d/next/Library/2023-07-22-21-57-34.gh-issue-107089.Dnget2.rst b/Misc/NEWS.d/next/Library/2023-07-22-21-57-34.gh-issue-107089.Dnget2.rst
index 9d5ba1a2d7ccb..3c29ddaa634ca 100644
--- a/Misc/NEWS.d/next/Library/2023-07-22-21-57-34.gh-issue-107089.Dnget2.rst
+++ b/Misc/NEWS.d/next/Library/2023-07-22-21-57-34.gh-issue-107089.Dnget2.rst
@@ -1,2 +1,2 @@
 Shelves opened with :func:`shelve.open` have a much faster :meth:`clear`
-method. Patch by James Cave.
\ No newline at end of file
+method. Patch by James Cave.
diff --git a/Misc/NEWS.d/next/Library/2023-08-07-14-12-07.gh-issue-107715.238r2f.rst b/Misc/NEWS.d/next/Library/2023-08-07-14-12-07.gh-issue-107715.238r2f.rst
index cd2a5d0d5324a..deea9af01c4eb 100644
--- a/Misc/NEWS.d/next/Library/2023-08-07-14-12-07.gh-issue-107715.238r2f.rst
+++ b/Misc/NEWS.d/next/Library/2023-08-07-14-12-07.gh-issue-107715.238r2f.rst
@@ -1 +1,2 @@
-Fix `doctest.DocTestFinder.find` in presence of class names with special characters. Patch by Gertjan van Zwieten.
+Fix :meth:`doctest.DocTestFinder.find` in presence of class names with special
+characters. Patch by Gertjan van Zwieten.
diff --git a/Misc/NEWS.d/next/Library/2023-08-17-14-45-25.gh-issue-105736.NJsH7r.rst b/Misc/NEWS.d/next/Library/2023-08-17-14-45-25.gh-issue-105736.NJsH7r.rst
index f051317d141ff..1d959a3b22284 100644
--- a/Misc/NEWS.d/next/Library/2023-08-17-14-45-25.gh-issue-105736.NJsH7r.rst
+++ b/Misc/NEWS.d/next/Library/2023-08-17-14-45-25.gh-issue-105736.NJsH7r.rst
@@ -1,3 +1,3 @@
-Harmonized the pure Python version of OrderedDict with the C version. Now,
-both versions set up their internal state in `__new__`.  Formerly, the pure
-Python version did the set up in `__init__`.
+Harmonized the pure Python version of :class:`~collections.OrderedDict` with the C version. Now,
+both versions set up their internal state in ``__new__``.  Formerly, the pure
+Python version did the set up in ``__init__``.



More information about the Python-checkins mailing list