History

ci/lint-commit-msg.py: remove .py from allowed extension skips

Allow extension skip only on core files c/cpp/h/m/swift, for the rest require ext.

Kacper Michajłow committed 1 year ago

Commit cd1e44c1 parent 814316f1 file · +1 −1Browse files

Showing the changes to ci/lint-commit-msg.py (1 of 1 file). Show all

Unified · Split

ci/lint-commit-msg.py+1−1
@@ -106,7 +106,7 @@ def line_too_long(body): · 105 unmodified lines
106106 "Prefix should not include file extension (use `vo_gpu: ...` not `vo_gpu.c: ...`)",
107107 )
108108 def no_file_exts(body):
109− return not re.search(r"[a-z0-9]\.([chm]|cpp|swift|py): ", body[0])
109+ return not re.search(r"[a-z0-9]\.([chm]|cpp|swift): ", body[0])
110110
111111 ################################################################################
112112

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t