Skip to content

Commit 2e30049

Browse files
hugovkpull[bot]
authored andcommitted
Pre-commit: prevent spaces in news entry paths (#126063)
1 parent 7e1a74d commit 2e30049

5 files changed

+16
-0
lines changed

.pre-commit-config.yaml

+16
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,22 @@ repos:
7272
args: [--enable=default-role]
7373
files: ^Doc/|^Misc/NEWS.d/
7474

75+
- repo: local
76+
hooks:
77+
- id: blurb-no-space-c-api
78+
name: Check C API news entries
79+
language: fail
80+
entry: Space found in path, move to Misc/NEWS.d/next/C_API/
81+
files: Misc/NEWS.d/next/C API/20.*.rst
82+
83+
- repo: local
84+
hooks:
85+
- id: blurb-no-space-core-and-builtins
86+
name: Check Core and Builtins news entries
87+
language: fail
88+
entry: Space found in path, move to Misc/NEWS.d/next/Core_and_Builtins/
89+
files: Misc/NEWS.d/next/Core and Builtins/20.*.rst
90+
7591
- repo: meta
7692
hooks:
7793
- id: check-hooks-apply

0 commit comments

Comments
 (0)