From caeda81bce1c7932a9d86909079e6f44f725e124 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Thu, 30 Jan 2025 17:30:17 +0100 Subject: [PATCH] ci/lint-commit-msg.py: add .rst from allowed extension skips All .rst files changes are prefixed with DOCS/ so the ext can be skipped. --- ci/lint-commit-msg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/lint-commit-msg.py b/ci/lint-commit-msg.py index 0362915ad8..0754203636 100755 --- a/ci/lint-commit-msg.py +++ b/ci/lint-commit-msg.py @@ -106,7 +106,7 @@ def line_too_long(body): "Prefix should not include file extension (use `vo_gpu: ...` not `vo_gpu.c: ...`)", ) def no_file_exts(body): - return not re.search(r"[a-z0-9]\.([chm]|cpp|swift): ", body[0]) + return not re.search(r"[a-z0-9]\.([chm]|cpp|swift|rst): ", body[0]) ################################################################################