From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id AD6E6138359 for ; Wed, 5 Aug 2020 02:28:07 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B277BE08F2; Wed, 5 Aug 2020 02:28:06 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 87936E08F2 for ; Wed, 5 Aug 2020 02:28:06 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1974634F040 for ; Wed, 5 Aug 2020 02:28:05 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8BC062FD for ; Wed, 5 Aug 2020 02:28:03 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: <1596594459.bbb3434b22beac53bc8514683281419bde72c9cf.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: / X-VCS-Repository: proj/portage X-VCS-Files: pylintrc setup.py tox.ini X-VCS-Directories: / X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: bbb3434b22beac53bc8514683281419bde72c9cf X-VCS-Branch: master Date: Wed, 5 Aug 2020 02:28:03 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 0cf769ac-d65d-45a9-a093-b10e75f77ece X-Archives-Hash: 8b5da4171c3b201a5890a6e9731764f1 commit: bbb3434b22beac53bc8514683281419bde72c9cf Author: Zac Medico gentoo org> AuthorDate: Tue Aug 4 21:13:18 2020 +0000 Commit: Zac Medico gentoo org> CommitDate: Wed Aug 5 02:27:39 2020 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=bbb3434b tox: call pylint for whole repo In addition to checking the whole repo, this fixes the import-error check. Signed-off-by: Zac Medico gentoo.org> pylintrc | 1 + setup.py | 16 ---------------- tox.ini | 2 +- 3 files changed, 2 insertions(+), 17 deletions(-) diff --git a/pylintrc b/pylintrc index 337311daa..cdfd48653 100644 --- a/pylintrc +++ b/pylintrc @@ -14,6 +14,7 @@ disable=all enable= cyclic-import, + import-error, import-self, misplaced-future, missing-final-newline, diff --git a/setup.py b/setup.py index 1c25b9cd7..bef5c31fa 100755 --- a/setup.py +++ b/setup.py @@ -606,21 +606,6 @@ class test(Command): ]) -class lint(Command): - """ run lint """ - - user_options = [] - - def initialize_options(self): - pass - - def finalize_options(self): - pass - - def run(self): - subprocess.check_call(['pylint', 'lib']) - - def find_packages(): for dirpath, _dirnames, filenames in os.walk('lib'): if '__init__.py' in filenames: @@ -721,7 +706,6 @@ setup( 'install_scripts_sbin': x_install_scripts_sbin, 'sdist': x_sdist, 'test': test, - 'lint': lint, }, classifiers = [ diff --git a/tox.ini b/tox.ini index 7497f4660..d6c8cf3b3 100644 --- a/tox.ini +++ b/tox.ini @@ -11,6 +11,6 @@ deps = setenv = PYTHONPATH={toxinidir}/lib commands = - python -b -Wd setup.py lint + bash -c 'rm -rf build && PYTHONPATH=$PWD/lib:$PWD/repoman/lib pylint *' python -b -Wd setup.py test python -b -Wd repoman/setup.py test