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:
1 parent
cd1e44c40b
commit
caeda81bce
1 file changed
+1
-1
@@ -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])
|
||||
|
||||
################################################################################
|
||||
|
||||
|
||||
Reference in new issue
Block a user