equal
deleted
inserted
replaced
998 blackcmd = 'black --version' |
998 blackcmd = 'black --version' |
999 version_regex = b'black, version ([0-9a-b.]+)' |
999 version_regex = b'black, version ([0-9a-b.]+)' |
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') |