##// END OF EJS Templates
hghave: add a check for pytype, Google's Python type checker...
Augie Fackler -
r43771:32ac4d0b default
parent child Browse files
Show More
@@ -1000,3 +1000,11 b' def has_black():'
1000 version = matchoutput(blackcmd, version_regex)
1000 version = matchoutput(blackcmd, version_regex)
1001 sv = distutils.version.StrictVersion
1001 sv = distutils.version.StrictVersion
1002 return version and sv(_strpath(version.group(1))) >= sv('19.10b0')
1002 return version and sv(_strpath(version.group(1))) >= sv('19.10b0')
1003
1004
1005 @check('pytype', 'the pytype type checker')
1006 def has_pytype():
1007 pytypecmd = 'pytype --version'
1008 version = matchoutput(pytypecmd, b'[0-9a-b.]+')
1009 sv = distutils.version.StrictVersion
1010 return version and sv(_strpath(version.group(0))) >= sv('2019.10.17')
General Comments 0
You need to be logged in to leave comments. Login now