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