tests/hghave.py
changeset 46405 9fd4f7af42ea
parent 46403 959d581bb625
child 46604 ad107ed7a4aa
equal deleted inserted replaced
46404:a390c7fcd286 46405:9fd4f7af42ea
   589 @check("pylint", "Pylint python linter")
   589 @check("pylint", "Pylint python linter")
   590 def has_pylint():
   590 def has_pylint():
   591     return matchoutput("pylint --help", br"Usage:[ ]+pylint", True)
   591     return matchoutput("pylint --help", br"Usage:[ ]+pylint", True)
   592 
   592 
   593 
   593 
   594 @check("clang-format", "clang-format C code formatter")
   594 @check("clang-format", "clang-format C code formatter (>= 11)")
   595 def has_clang_format():
   595 def has_clang_format():
   596     m = matchoutput('clang-format --version', br'clang-format version (\d+)')
   596     m = matchoutput('clang-format --version', br'clang-format version (\d+)')
   597     # style changed somewhere between 10.x and 11.x
   597     # style changed somewhere between 10.x and 11.x
   598     return m and int(m.group(1)) >= 11
   598     return m and int(m.group(1)) >= 11
   599 
   599