tests: disable lints on mercurial/thirdparty

In the next patch, this directory will be used to vendor in some third-party
code.

Differential Revision: https://phab.mercurial-scm.org/D866
This commit is contained in:
Siddharth Agarwal 2017-10-01 03:24:19 -07:00
parent cfad578e95
commit 4247de0b07
4 changed files with 9 additions and 3 deletions

View File

@ -35,6 +35,8 @@ allowsymbolimports = (
'mercurial.pure.mpatch',
'mercurial.pure.osutil',
'mercurial.pure.parsers',
# third-party imports should be directly imported
'mercurial.thirdparty',
)
# Whitelist of symbols that can be directly imported.

View File

@ -7,9 +7,11 @@
New errors are not allowed. Warnings are strongly discouraged.
(The writing "no-che?k-code" is for not skipping this file when checking.)
$ testrepohg locate -X contrib/python-zstandard \
> -X hgext/fsmonitor/pywatchman |
> sed 's-\\-/-g' | "$check_code" --warnings --per-file=0 - || false
$ testrepohg locate \
> -X contrib/python-zstandard \
> -X hgext/fsmonitor/pywatchman \
> -X mercurial/thirdparty \
> | sed 's-\\-/-g' | "$check_code" --warnings --per-file=0 - || false
Skipping i18n/polib.py it has no-che?k-code (glob)
Skipping mercurial/httpclient/__init__.py it has no-che?k-code (glob)
Skipping mercurial/httpclient/_readers.py it has no-che?k-code (glob)

View File

@ -25,6 +25,7 @@ outputs, which should be fixed later.
> -X doc/gendoc.py \
> -X doc/hgmanpage.py \
> -X i18n/posplit \
> -X mercurial/thirdparty \
> -X tests/hypothesishelpers.py \
> -X tests/test-commit-interactive.t \
> -X tests/test-contrib-check-code.t \

View File

@ -12,6 +12,7 @@ Current checks:
$ touch $TESTTMP/fakerc
$ pylint --rcfile=$TESTTMP/fakerc --disable=all \
> --enable=W0102 --reports=no \
> --ignore=thirdparty \
> mercurial hgdemandimport hgext hgext3rd
(?)
------------------------------------ (?)