1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-05 14:42:24 +00:00

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 2025-01-30 17:30:17 +01:00
parent cd1e44c40b
commit caeda81bce

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])
################################################################################