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.
This commit is contained in:
Kacper Michajłow committed 2025-01-30 19:34:31 +01:00
1 parent cd1e44c40b
commit caeda81bce
1 file changed
+1 -1
+1 -1
View File
@@ -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])
################################################################################