mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
check: check modules in hgdemandimport
A few places only check modules in mercurial and hgext. Add hgdemandimport to the list in those places.
This commit is contained in:
parent
a41c665cd6
commit
1ce1a31421
@ -51,9 +51,10 @@ def check_compat_py3(f):
|
||||
return
|
||||
|
||||
# Try to import the module.
|
||||
# For now we only support mercurial.* and hgext.* modules because figuring
|
||||
# out module paths for things not in a package can be confusing.
|
||||
if f.startswith(('hgext/', 'mercurial/')) and not f.endswith('__init__.py'):
|
||||
# For now we only support modules in packages because figuring out module
|
||||
# paths for things not in a package can be confusing.
|
||||
if (f.startswith(('hgdemandimport/', 'hgext/', 'mercurial/'))
|
||||
and not f.endswith('__init__.py')):
|
||||
assert f.endswith('.py')
|
||||
name = f.replace('/', '.')[:-3]
|
||||
try:
|
||||
|
@ -23,6 +23,6 @@
|
||||
Check if ":hg:`help TOPIC`" is valid:
|
||||
(use "xargs -n1 -t" to see which help commands are executed)
|
||||
|
||||
$ hg files 'glob:{hgext,mercurial}/**/*.py' | sed 's|\\|/|g' \
|
||||
$ hg files 'glob:{hgdemandimport,hgext,mercurial}/**/*.py' | sed 's|\\|/|g' \
|
||||
> | xargs python "$TESTTMP/scanhelptopics.py" \
|
||||
> | xargs -n1 hg help > /dev/null
|
||||
|
@ -12,7 +12,7 @@ Current checks:
|
||||
$ touch $TESTTMP/fakerc
|
||||
$ pylint --rcfile=$TESTTMP/fakerc --disable=all \
|
||||
> --enable=W0102 --reports=no \
|
||||
> mercurial hgext hgext3rd
|
||||
> mercurial hgdemandimport hgext hgext3rd
|
||||
(?)
|
||||
------------------------------------ (?)
|
||||
Your code has been rated at 10.00/10 (?)
|
||||
|
Loading…
Reference in New Issue
Block a user