https://github.com/python/cpython/commit/dcda92f8fcfa70ef48935db0dc468734de897d96
commit: dcda92f8fcfa70ef48935db0dc468734de897d96
branch: main
author: Hugo van Kemenade <[email protected]>
committer: hugovk <[email protected]>
date: 2024-10-28T23:04:10+02:00
summary:

Pre-commit: prevent spaces in news entry paths (#126063)

files:
A 
Misc/NEWS.d/next/Core_and_Builtins/2023-12-30-00-21-45.gh-issue-113570._XQgsW.rst
A 
Misc/NEWS.d/next/Core_and_Builtins/2024-05-12-03-10-36.gh-issue-118950.5Wc4vp.rst
A 
Misc/NEWS.d/next/Core_and_Builtins/2024-10-18-10-11-43.gh-issue-125593.Q97m3A.rst
A 
Misc/NEWS.d/next/Core_and_Builtins/2024-10-26-13-32-48.gh-issue-126012.2KalhG.rst
D Misc/NEWS.d/next/Core and 
Builtins/2023-12-30-00-21-45.gh-issue-113570._XQgsW.rst
D Misc/NEWS.d/next/Core and 
Builtins/2024-05-12-03-10-36.gh-issue-118950.5Wc4vp.rst
D Misc/NEWS.d/next/Core and 
Builtins/2024-10-18-10-11-43.gh-issue-125593.Q97m3A.rst
D Misc/NEWS.d/next/Core and 
Builtins/2024-10-26-13-32-48.gh-issue-126012.2KalhG.rst
M .pre-commit-config.yaml

diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index f1db7886d8261c..ec769d7ff70314 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -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
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

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to