Mercurial > hg-stable
comparison contrib/check-code.py @ 32230:41d79475d440
check-code: exclude demandimport.py and policy.py from Python 3 checks
These modules can't depend on pycompat.py, which means we have to write Py3
hacks in them.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Wed, 26 Apr 2017 21:51:19 +0900 |
parents | ac641a41f98d |
children | cf424dae5dc7 |
comparison
equal
deleted
inserted
replaced
32229:ac641a41f98d | 32230:41d79475d440 |
---|---|
490 ] | 490 ] |
491 | 491 |
492 checks = [ | 492 checks = [ |
493 ('python', r'.*\.(py|cgi)$', r'^#!.*python', pyfilters, pypats), | 493 ('python', r'.*\.(py|cgi)$', r'^#!.*python', pyfilters, pypats), |
494 ('python', r'.*hgext.*\.py$', '', [], pyextnfpats), | 494 ('python', r'.*hgext.*\.py$', '', [], pyextnfpats), |
495 ('python 3', r'.*(hgext|mercurial)/(?!pycompat).*\.py', '', | 495 ('python 3', r'.*(hgext|mercurial)/(?!demandimport|policy|pycompat).*\.py', |
496 pyfilters, py3pats), | 496 '', pyfilters, py3pats), |
497 ('test script', r'(.*/)?test-[^.~]*$', '', testfilters, testpats), | 497 ('test script', r'(.*/)?test-[^.~]*$', '', testfilters, testpats), |
498 ('c', r'.*\.[ch]$', '', cfilters, cpats), | 498 ('c', r'.*\.[ch]$', '', cfilters, cpats), |
499 ('unified test', r'.*\.t$', '', utestfilters, utestpats), | 499 ('unified test', r'.*\.t$', '', utestfilters, utestpats), |
500 ('layering violation repo in revlog', r'mercurial/revlog\.py', '', | 500 ('layering violation repo in revlog', r'mercurial/revlog\.py', '', |
501 pyfilters, inrevlogpats), | 501 pyfilters, inrevlogpats), |