##// END OF EJS Templates
check: check modules in hgdemandimport...
Siddharth Agarwal -
r32421:778dc37c default
parent child Browse files
Show More
@@ -51,9 +51,10 b' def check_compat_py3(f):'
51 return
51 return
52
52
53 # Try to import the module.
53 # Try to import the module.
54 # For now we only support mercurial.* and hgext.* modules because figuring
54 # For now we only support modules in packages because figuring out module
55 # out module paths for things not in a package can be confusing.
55 # paths for things not in a package can be confusing.
56 if f.startswith(('hgext/', 'mercurial/')) and not f.endswith('__init__.py'):
56 if (f.startswith(('hgdemandimport/', 'hgext/', 'mercurial/'))
57 and not f.endswith('__init__.py')):
57 assert f.endswith('.py')
58 assert f.endswith('.py')
58 name = f.replace('/', '.')[:-3]
59 name = f.replace('/', '.')[:-3]
59 try:
60 try:
@@ -23,6 +23,6 b''
23 Check if ":hg:`help TOPIC`" is valid:
23 Check if ":hg:`help TOPIC`" is valid:
24 (use "xargs -n1 -t" to see which help commands are executed)
24 (use "xargs -n1 -t" to see which help commands are executed)
25
25
26 $ hg files 'glob:{hgext,mercurial}/**/*.py' | sed 's|\\|/|g' \
26 $ hg files 'glob:{hgdemandimport,hgext,mercurial}/**/*.py' | sed 's|\\|/|g' \
27 > | xargs python "$TESTTMP/scanhelptopics.py" \
27 > | xargs python "$TESTTMP/scanhelptopics.py" \
28 > | xargs -n1 hg help > /dev/null
28 > | xargs -n1 hg help > /dev/null
@@ -12,7 +12,7 b' Current checks:'
12 $ touch $TESTTMP/fakerc
12 $ touch $TESTTMP/fakerc
13 $ pylint --rcfile=$TESTTMP/fakerc --disable=all \
13 $ pylint --rcfile=$TESTTMP/fakerc --disable=all \
14 > --enable=W0102 --reports=no \
14 > --enable=W0102 --reports=no \
15 > mercurial hgext hgext3rd
15 > mercurial hgdemandimport hgext hgext3rd
16 (?)
16 (?)
17 ------------------------------------ (?)
17 ------------------------------------ (?)
18 Your code has been rated at 10.00/10 (?)
18 Your code has been rated at 10.00/10 (?)
General Comments 0
You need to be logged in to leave comments. Login now