# HG changeset patch # User Siddharth Agarwal # Date 1506853459 25200 # Node ID 41401f502c835c303a048311bfff29226f4f93f7 # Parent dbf83230e8bebc998a1f08a414d757bc32487d39 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 diff -r dbf83230e8be -r 41401f502c83 contrib/import-checker.py --- a/contrib/import-checker.py Sun Oct 01 03:48:28 2017 -0700 +++ b/contrib/import-checker.py Sun Oct 01 03:24:19 2017 -0700 @@ -35,6 +35,8 @@ '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. diff -r dbf83230e8be -r 41401f502c83 tests/test-check-code.t --- a/tests/test-check-code.t Sun Oct 01 03:48:28 2017 -0700 +++ b/tests/test-check-code.t Sun Oct 01 03:24:19 2017 -0700 @@ -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) diff -r dbf83230e8be -r 41401f502c83 tests/test-check-module-imports.t --- a/tests/test-check-module-imports.t Sun Oct 01 03:48:28 2017 -0700 +++ b/tests/test-check-module-imports.t Sun Oct 01 03:24:19 2017 -0700 @@ -25,6 +25,7 @@ > -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 \ diff -r dbf83230e8be -r 41401f502c83 tests/test-check-pylint.t --- a/tests/test-check-pylint.t Sun Oct 01 03:48:28 2017 -0700 +++ b/tests/test-check-pylint.t Sun Oct 01 03:24:19 2017 -0700 @@ -12,6 +12,7 @@ $ touch $TESTTMP/fakerc $ pylint --rcfile=$TESTTMP/fakerc --disable=all \ > --enable=W0102 --reports=no \ + > --ignore=thirdparty \ > mercurial hgdemandimport hgext hgext3rd (?) ------------------------------------ (?)