equal
deleted
inserted
replaced
1013 def has_pytype(): |
1013 def has_pytype(): |
1014 pytypecmd = 'pytype --version' |
1014 pytypecmd = 'pytype --version' |
1015 version = matchoutput(pytypecmd, b'[0-9a-b.]+') |
1015 version = matchoutput(pytypecmd, b'[0-9a-b.]+') |
1016 sv = distutils.version.StrictVersion |
1016 sv = distutils.version.StrictVersion |
1017 return version and sv(_strpath(version.group(0))) >= sv('2019.10.17') |
1017 return version and sv(_strpath(version.group(0))) >= sv('2019.10.17') |
|
1018 |
|
1019 |
|
1020 @check("rustfmt", "rustfmt tool") |
|
1021 def has_rustfmt(): |
|
1022 # We use Nightly's rustfmt due to current unstable config options. |
|
1023 return matchoutput( |
|
1024 '`rustup which --toolchain nightly rustfmt` --version', b'rustfmt' |
|
1025 ) |