mirror of
https://github.com/python/cpython.git
synced 2024-11-23 01:45:25 +08:00
Pre-commit: prevent spaces in news entry paths (#126063)
This commit is contained in:
parent
e1190c0543
commit
dcda92f8fc
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user