From ae896c32890c0bdf49be344d32b61ca4bbcf9794 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Tue, 27 Aug 2024 13:16:32 +0300 Subject: [PATCH 1/2] Prevent spaces in news entry paths Thanks to https://adamj.eu/tech/2024/01/24/pre-commit-fail-hook/ --- .pre-commit-config.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 891934bc70a64f..bd93f32bc7bea2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -57,6 +57,22 @@ repos: args: [--enable=default-role] files: ^Doc/|^Misc/NEWS.d/ + - 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: meta hooks: - id: check-hooks-apply From f12af9e2a1e557ac0d2078cac38e11c9c4ac6b8c Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Mon, 28 Oct 2024 08:55:00 +0200 Subject: [PATCH 2/2] Move news to Core_and_Builtins --- .../2023-12-30-00-21-45.gh-issue-113570._XQgsW.rst | 0 .../2024-05-12-03-10-36.gh-issue-118950.5Wc4vp.rst | 0 .../2024-10-18-10-11-43.gh-issue-125593.Q97m3A.rst | 0 .../2024-10-26-13-32-48.gh-issue-126012.2KalhG.rst | 0 4 files changed, 0 insertions(+), 0 deletions(-) rename Misc/NEWS.d/next/{Core and Builtins => Core_and_Builtins}/2023-12-30-00-21-45.gh-issue-113570._XQgsW.rst (100%) rename Misc/NEWS.d/next/{Core and Builtins => Core_and_Builtins}/2024-05-12-03-10-36.gh-issue-118950.5Wc4vp.rst (100%) rename Misc/NEWS.d/next/{Core and Builtins => Core_and_Builtins}/2024-10-18-10-11-43.gh-issue-125593.Q97m3A.rst (100%) rename Misc/NEWS.d/next/{Core and Builtins => Core_and_Builtins}/2024-10-26-13-32-48.gh-issue-126012.2KalhG.rst (100%) diff --git a/Misc/NEWS.d/next/Core and Builtins/2023-12-30-00-21-45.gh-issue-113570._XQgsW.rst b/Misc/NEWS.d/next/Core_and_Builtins/2023-12-30-00-21-45.gh-issue-113570._XQgsW.rst similarity index 100% rename from Misc/NEWS.d/next/Core and Builtins/2023-12-30-00-21-45.gh-issue-113570._XQgsW.rst rename to Misc/NEWS.d/next/Core_and_Builtins/2023-12-30-00-21-45.gh-issue-113570._XQgsW.rst diff --git a/Misc/NEWS.d/next/Core and Builtins/2024-05-12-03-10-36.gh-issue-118950.5Wc4vp.rst b/Misc/NEWS.d/next/Core_and_Builtins/2024-05-12-03-10-36.gh-issue-118950.5Wc4vp.rst similarity index 100% rename from Misc/NEWS.d/next/Core and Builtins/2024-05-12-03-10-36.gh-issue-118950.5Wc4vp.rst rename to Misc/NEWS.d/next/Core_and_Builtins/2024-05-12-03-10-36.gh-issue-118950.5Wc4vp.rst diff --git a/Misc/NEWS.d/next/Core and Builtins/2024-10-18-10-11-43.gh-issue-125593.Q97m3A.rst b/Misc/NEWS.d/next/Core_and_Builtins/2024-10-18-10-11-43.gh-issue-125593.Q97m3A.rst similarity index 100% rename from Misc/NEWS.d/next/Core and Builtins/2024-10-18-10-11-43.gh-issue-125593.Q97m3A.rst rename to Misc/NEWS.d/next/Core_and_Builtins/2024-10-18-10-11-43.gh-issue-125593.Q97m3A.rst diff --git a/Misc/NEWS.d/next/Core and Builtins/2024-10-26-13-32-48.gh-issue-126012.2KalhG.rst b/Misc/NEWS.d/next/Core_and_Builtins/2024-10-26-13-32-48.gh-issue-126012.2KalhG.rst similarity index 100% rename from Misc/NEWS.d/next/Core and Builtins/2024-10-26-13-32-48.gh-issue-126012.2KalhG.rst rename to Misc/NEWS.d/next/Core_and_Builtins/2024-10-26-13-32-48.gh-issue-126012.2KalhG.rst