summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHugo van Kemenade <hugovk@users.noreply.github.com>2023-08-21 13:13:55 (GMT)
committerGitHub <noreply@github.com>2023-08-21 13:13:55 (GMT)
commit71962e5237bb7e12d8fc1447b8ed8ba082e23f77 (patch)
tree38cf99fd5e4150e62b08ca0ce67bd8f44c243cc1
parent37135d25e269ede92bc7da363bebfa574782e59a (diff)
downloadcpython-71962e5237bb7e12d8fc1447b8ed8ba082e23f77.zip
cpython-71962e5237bb7e12d8fc1447b8ed8ba082e23f77.tar.gz
cpython-71962e5237bb7e12d8fc1447b8ed8ba082e23f77.tar.bz2
Run sphinx-lint on Misc/NEWS.d/next/ (#108212)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
-rw-r--r--.pre-commit-config.yaml2
-rw-r--r--Misc/NEWS.d/next/Build/2023-07-28-18-17-33.gh-issue-106881.U3Ezdq.rst2
-rw-r--r--Misc/NEWS.d/next/Core and Builtins/2023-06-24-10-34-27.gh-issue-105775.OqjoGV.rst2
-rw-r--r--Misc/NEWS.d/next/Core and Builtins/2023-07-04-04-50-14.gh-issue-100288.yNQ1ez.rst3
-rw-r--r--Misc/NEWS.d/next/Core and Builtins/2023-07-27-11-18-04.gh-issue-106078.WEy2Yn.rst2
-rw-r--r--Misc/NEWS.d/next/Core and Builtins/2023-07-27-11-47-29.gh-issue-104432.oGHF-z.rst2
-rw-r--r--Misc/NEWS.d/next/Library/2020-05-03-00-33-15.bpo-18319.faPTlx.rst4
-rw-r--r--Misc/NEWS.d/next/Library/2023-06-25-12-28-55.gh-issue-106075.W7tMRb.rst2
-rw-r--r--Misc/NEWS.d/next/Library/2023-06-30-16-42-44.gh-issue-106263.tk-t93.rst2
-rw-r--r--Misc/NEWS.d/next/Library/2023-07-14-16-54-13.gh-issue-106752.BT1Yxw.rst2
-rw-r--r--Misc/NEWS.d/next/Library/2023-07-16-10-40-34.gh-issue-106789.NvyE3C.rst2
-rw-r--r--Misc/NEWS.d/next/Library/2023-07-22-21-57-34.gh-issue-107089.Dnget2.rst2
-rw-r--r--Misc/NEWS.d/next/Library/2023-08-07-14-12-07.gh-issue-107715.238r2f.rst3
-rw-r--r--Misc/NEWS.d/next/Library/2023-08-17-14-45-25.gh-issue-105736.NJsH7r.rst6
14 files changed, 18 insertions, 18 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 85a6de4..451cbe8 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 40b2609..7febf99 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 27d0e99..57a30f6 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 faf43bd..0d074ff 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 f5a0e539..60d3304 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 e47927b..a9ab5cd 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 a1a4cf6..94d7cc9 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 d268715..0c24ff7 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 2376381..d86a6bf 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 bbc53d7..bcda641 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 532f805..b9cf35a 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 9d5ba1a..3c29dda 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 cd2a5d0..deea9af 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 f051317..1d959a3 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__``.