mirror of
https://github.com/facebook/sapling.git
synced 2025-01-07 14:10:42 +03:00
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:
parent
cfad578e95
commit
4247de0b07
@ -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.
|
||||
|
@ -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)
|
||||
|
@ -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 \
|
||||
|
@ -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
|
||||
(?)
|
||||
------------------------------------ (?)
|
||||
|
Loading…
Reference in New Issue
Block a user