]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Pre-commit: prevent spaces in news entry paths (#126063)
authorHugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Mon, 28 Oct 2024 21:04:10 +0000 (23:04 +0200)
committerGitHub <noreply@github.com>
Mon, 28 Oct 2024 21:04:10 +0000 (23:04 +0200)
.pre-commit-config.yaml
Misc/NEWS.d/next/Core_and_Builtins/2023-12-30-00-21-45.gh-issue-113570._XQgsW.rst [moved from Misc/NEWS.d/next/Core and Builtins/2023-12-30-00-21-45.gh-issue-113570._XQgsW.rst with 100% similarity]
Misc/NEWS.d/next/Core_and_Builtins/2024-05-12-03-10-36.gh-issue-118950.5Wc4vp.rst [moved from Misc/NEWS.d/next/Core and Builtins/2024-05-12-03-10-36.gh-issue-118950.5Wc4vp.rst with 100% similarity]
Misc/NEWS.d/next/Core_and_Builtins/2024-10-18-10-11-43.gh-issue-125593.Q97m3A.rst [moved from Misc/NEWS.d/next/Core and Builtins/2024-10-18-10-11-43.gh-issue-125593.Q97m3A.rst with 100% similarity]
Misc/NEWS.d/next/Core_and_Builtins/2024-10-26-13-32-48.gh-issue-126012.2KalhG.rst [moved from Misc/NEWS.d/next/Core and Builtins/2024-10-26-13-32-48.gh-issue-126012.2KalhG.rst with 100% similarity]

index f1db7886d8261ceddc738f1a97648522883c1b19..ec769d7ff70314c7a97a72d0f6c50fa7b93e7fea 100644 (file)
@@ -72,6 +72,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