Mercurial > hg > truffle
comparison mxtool/mx.py @ 18135:1700d12ba0ad
Require pylint 1.1.x
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Tue, 21 Oct 2014 10:11:30 +0200 |
parents | c4f649042a7b |
children | 31ad929e1afd |
comparison
equal
deleted
inserted
replaced
18134:6a2f814224b1 | 18135:1700d12ba0ad |
---|---|
2939 m = re.match(r'.*pylint (\d+)\.(\d+)\.(\d+).*', output, re.DOTALL) | 2939 m = re.match(r'.*pylint (\d+)\.(\d+)\.(\d+).*', output, re.DOTALL) |
2940 if not m: | 2940 if not m: |
2941 log('could not determine pylint version from ' + output) | 2941 log('could not determine pylint version from ' + output) |
2942 return | 2942 return |
2943 major, minor, micro = (int(m.group(1)), int(m.group(2)), int(m.group(3))) | 2943 major, minor, micro = (int(m.group(1)), int(m.group(2)), int(m.group(3))) |
2944 if major < 1: | 2944 if major != 1 or minor != 1: |
2945 log('require pylint version >= 1 (got {0}.{1}.{2})'.format(major, minor, micro)) | 2945 log('require pylint version = 1.1.x (got {0}.{1}.{2})'.format(major, minor, micro)) |
2946 return | 2946 return |
2947 except BaseException: | 2947 except BaseException: |
2948 log('pylint is not available') | 2948 log('pylint is not available') |
2949 return | 2949 return |
2950 | 2950 |