From 9e004cf57184f0cdbd6a87f38dc9fd1f61f89d03 Mon Sep 17 00:00:00 2001 From: Stan Ulbrych Date: Sat, 28 Feb 2026 11:37:02 +0000 Subject: [PATCH] Re-do on updated branch --- .pre-commit-config.yaml | 16 ++++++++++++++++ Misc/NEWS.d/next/{C API => C_API}/README.rst | 0 ...2023-07-26-00-03-00.gh-issue-80667.N7Dh8B.rst | 0 ...026-01-10-10-58-36.gh-issue-143650.k8mR4x.rst | 0 ...026-02-08-12-47-27.gh-issue-144601.E4Yi9J.rst | 0 ...026-02-13-18-30-59.gh-issue-144766.JGu3x3.rst | 0 ...026-02-26-21-36-00.gh-issue-145234.w0mQ9n.rst | 0 .../README.rst | 0 8 files changed, 16 insertions(+) rename Misc/NEWS.d/next/{C API => C_API}/README.rst (100%) rename Misc/NEWS.d/next/{Core and Builtins => Core_and_Builtins}/2023-07-26-00-03-00.gh-issue-80667.N7Dh8B.rst (100%) rename Misc/NEWS.d/next/{Core and Builtins => Core_and_Builtins}/2026-01-10-10-58-36.gh-issue-143650.k8mR4x.rst (100%) rename Misc/NEWS.d/next/{Core and Builtins => Core_and_Builtins}/2026-02-08-12-47-27.gh-issue-144601.E4Yi9J.rst (100%) rename Misc/NEWS.d/next/{Core and Builtins => Core_and_Builtins}/2026-02-13-18-30-59.gh-issue-144766.JGu3x3.rst (100%) rename Misc/NEWS.d/next/{Core and Builtins => Core_and_Builtins}/2026-02-26-21-36-00.gh-issue-145234.w0mQ9n.rst (100%) rename Misc/NEWS.d/next/{Core and Builtins => Core_and_Builtins}/README.rst (100%) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 33c0ab8645f13c..fa49526ad51ad3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -49,6 +49,22 @@ repos: types: [python] exclude: ^Tools/c-analyzer/cpython/_parser.py + - repo: local + hooks: + - id: blurb-no-space-c-api + name: Check C API news entries + language: fail + entry: Space found in path, move to Misc/NEWS.d/next/C_API/ + files: Misc/NEWS.d/next/C API/20.*.rst + + - repo: local + hooks: + - id: blurb-no-space-core-and-builtins + name: Check Core and Builtins news entries + language: fail + entry: Space found in path, move to Misc/NEWS.d/next/Core_and_Builtins/ + files: Misc/NEWS.d/next/Core and Builtins/20.*.rst + - repo: https://github.com/pre-commit/pre-commit-hooks rev: v6.0.0 hooks: diff --git a/Misc/NEWS.d/next/C API/README.rst b/Misc/NEWS.d/next/C_API/README.rst similarity index 100% rename from Misc/NEWS.d/next/C API/README.rst rename to Misc/NEWS.d/next/C_API/README.rst diff --git a/Misc/NEWS.d/next/Core and Builtins/2023-07-26-00-03-00.gh-issue-80667.N7Dh8B.rst b/Misc/NEWS.d/next/Core_and_Builtins/2023-07-26-00-03-00.gh-issue-80667.N7Dh8B.rst similarity index 100% rename from Misc/NEWS.d/next/Core and Builtins/2023-07-26-00-03-00.gh-issue-80667.N7Dh8B.rst rename to Misc/NEWS.d/next/Core_and_Builtins/2023-07-26-00-03-00.gh-issue-80667.N7Dh8B.rst diff --git a/Misc/NEWS.d/next/Core and Builtins/2026-01-10-10-58-36.gh-issue-143650.k8mR4x.rst b/Misc/NEWS.d/next/Core_and_Builtins/2026-01-10-10-58-36.gh-issue-143650.k8mR4x.rst similarity index 100% rename from Misc/NEWS.d/next/Core and Builtins/2026-01-10-10-58-36.gh-issue-143650.k8mR4x.rst rename to Misc/NEWS.d/next/Core_and_Builtins/2026-01-10-10-58-36.gh-issue-143650.k8mR4x.rst diff --git a/Misc/NEWS.d/next/Core and Builtins/2026-02-08-12-47-27.gh-issue-144601.E4Yi9J.rst b/Misc/NEWS.d/next/Core_and_Builtins/2026-02-08-12-47-27.gh-issue-144601.E4Yi9J.rst similarity index 100% rename from Misc/NEWS.d/next/Core and Builtins/2026-02-08-12-47-27.gh-issue-144601.E4Yi9J.rst rename to Misc/NEWS.d/next/Core_and_Builtins/2026-02-08-12-47-27.gh-issue-144601.E4Yi9J.rst diff --git a/Misc/NEWS.d/next/Core and Builtins/2026-02-13-18-30-59.gh-issue-144766.JGu3x3.rst b/Misc/NEWS.d/next/Core_and_Builtins/2026-02-13-18-30-59.gh-issue-144766.JGu3x3.rst similarity index 100% rename from Misc/NEWS.d/next/Core and Builtins/2026-02-13-18-30-59.gh-issue-144766.JGu3x3.rst rename to Misc/NEWS.d/next/Core_and_Builtins/2026-02-13-18-30-59.gh-issue-144766.JGu3x3.rst diff --git a/Misc/NEWS.d/next/Core and Builtins/2026-02-26-21-36-00.gh-issue-145234.w0mQ9n.rst b/Misc/NEWS.d/next/Core_and_Builtins/2026-02-26-21-36-00.gh-issue-145234.w0mQ9n.rst similarity index 100% rename from Misc/NEWS.d/next/Core and Builtins/2026-02-26-21-36-00.gh-issue-145234.w0mQ9n.rst rename to Misc/NEWS.d/next/Core_and_Builtins/2026-02-26-21-36-00.gh-issue-145234.w0mQ9n.rst diff --git a/Misc/NEWS.d/next/Core and Builtins/README.rst b/Misc/NEWS.d/next/Core_and_Builtins/README.rst similarity index 100% rename from Misc/NEWS.d/next/Core and Builtins/README.rst rename to Misc/NEWS.d/next/Core_and_Builtins/README.rst