Skip to content

Commit dcda92f

Browse files
authored
Pre-commit: prevent spaces in news entry paths (#126063)
1 parent e1190c0 commit dcda92f

File tree

5 files changed

+16
-0
lines changed

5 files changed

+16
-0
lines changed

.pre-commit-config.yaml

Lines changed: 16 additions & 0 deletions
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

Misc/NEWS.d/next/Core and Builtins/2023-12-30-00-21-45.gh-issue-113570._XQgsW.rst renamed to Misc/NEWS.d/next/Core_and_Builtins/2023-12-30-00-21-45.gh-issue-113570._XQgsW.rst

File renamed without changes.

Misc/NEWS.d/next/Core and Builtins/2024-05-12-03-10-36.gh-issue-118950.5Wc4vp.rst renamed to Misc/NEWS.d/next/Core_and_Builtins/2024-05-12-03-10-36.gh-issue-118950.5Wc4vp.rst

File renamed without changes.

Misc/NEWS.d/next/Core and Builtins/2024-10-18-10-11-43.gh-issue-125593.Q97m3A.rst renamed to Misc/NEWS.d/next/Core_and_Builtins/2024-10-18-10-11-43.gh-issue-125593.Q97m3A.rst

File renamed without changes.

Misc/NEWS.d/next/Core and Builtins/2024-10-26-13-32-48.gh-issue-126012.2KalhG.rst renamed to Misc/NEWS.d/next/Core_and_Builtins/2024-10-26-13-32-48.gh-issue-126012.2KalhG.rst

File renamed without changes.

0 commit comments

Comments
 (0)