hghave: detect newer pylint stable
authorAnton Shestakov <av6@dwimlabs.net>
Mon, 12 Dec 2022 17:42:30 +0400
branchstable
changeset 49791 38ae503b369b
parent 49790 f463eb675e85
child 49792 4658f5e67e4e
hghave: detect newer pylint Older versions (e.g. 2.7.2) say: "Usage: pylint [options]" Newer versions (e.g. 2.15.5) say: "usage: pylint [options]"
tests/hghave.py
--- a/tests/hghave.py	Sat Nov 12 00:18:41 2022 +0100
+++ b/tests/hghave.py	Mon Dec 12 17:42:30 2022 +0400
@@ -612,7 +612,7 @@
 
 @check("pylint", "Pylint python linter")
 def has_pylint():
-    return matchoutput("pylint --help", br"Usage:[ ]+pylint", True)
+    return matchoutput("pylint --help", br"[Uu]sage:[ ]+pylint", True)
 
 
 @check("clang-format", "clang-format C code formatter (>= 11)")