contrib/check-code.py
changeset 31602 772878ac930e
parent 31572 c0c4e14ee597
child 31673 6a2959acae1a
--- a/contrib/check-code.py	Thu Mar 23 21:16:55 2017 -0700
+++ b/contrib/check-code.py	Thu Mar 23 21:23:21 2017 -0700
@@ -371,6 +371,13 @@
           (?P=quote))""", reppython),
 ]
 
+# extension non-filter patterns
+pyextnfpats = [
+    [(r'^"""\n?[A-Z]', "don't capitalize docstring title")],
+    # warnings
+    [],
+]
+
 txtfilters = []
 
 txtpats = [
@@ -480,6 +487,7 @@
 
 checks = [
     ('python', r'.*\.(py|cgi)$', r'^#!.*python', pyfilters, pypats),
+    ('python', r'.*hgext.*\.py$', '', [], pyextnfpats),
     ('python 3', r'.*(hgext|mercurial).*(?<!pycompat)\.py', '',
             pyfilters, py3pats),
     ('test script', r'(.*/)?test-[^.~]*$', '', testfilters, testpats),