Skip to content

Commit bea01a7

Browse files
hugovkStanFromIreland
authored andcommitted
Pre-commit: prevent spaces in news entry paths (#126063)
1 parent 21bcecf commit bea01a7

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.pre-commit-config.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,22 @@ repos:
6363
args: [--enable=default-role]
6464
files: ^Doc/|^Misc/NEWS.d/
6565

66+
- repo: local
67+
hooks:
68+
- id: blurb-no-space-c-api
69+
name: Check C API news entries
70+
language: fail
71+
entry: Space found in path, move to Misc/NEWS.d/next/C_API/
72+
files: Misc/NEWS.d/next/C API/20.*.rst
73+
74+
- repo: local
75+
hooks:
76+
- id: blurb-no-space-core-and-builtins
77+
name: Check Core and Builtins news entries
78+
language: fail
79+
entry: Space found in path, move to Misc/NEWS.d/next/Core_and_Builtins/
80+
files: Misc/NEWS.d/next/Core and Builtins/20.*.rst
81+
6682
- repo: meta
6783
hooks:
6884
- id: check-hooks-apply

0 commit comments

Comments
 (0)