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), |