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

This commit is contained in:
Hugo van Kemenade 2024-10-28 23:04:10 +02:00 committed by GitHub
parent e1190c0543
commit dcda92f8fc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 16 additions and 0 deletions

View File

@ -72,6 +72,22 @@ repos:
args: [--enable=default-role] args: [--enable=default-role]
files: ^Doc/|^Misc/NEWS.d/ 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 - repo: meta
hooks: hooks:
- id: check-hooks-apply - id: check-hooks-apply