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 F1768138359 for ; Tue, 4 Aug 2020 04:08:50 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EF656E0DF9; Tue, 4 Aug 2020 04:08:49 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.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 49A96E0DF9 for ; Tue, 4 Aug 2020 04:08:49 +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 D73B934F168 for ; Tue, 4 Aug 2020 04:08:46 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5C0A12FD for ; Tue, 4 Aug 2020 04:08:45 +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: <1596512211.b73bbf1be0c1ab600ffcbed704f0c331eb033dfe.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: / X-VCS-Repository: proj/portage X-VCS-Files: setup.py tox.ini X-VCS-Directories: / X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: b73bbf1be0c1ab600ffcbed704f0c331eb033dfe X-VCS-Branch: master Date: Tue, 4 Aug 2020 04:08:45 +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: 08cb7eed-3cfd-420f-a074-8b1ad7386d97 X-Archives-Hash: faca62655d545061b236276e6228d32d commit: b73bbf1be0c1ab600ffcbed704f0c331eb033dfe Author: Zac Medico gentoo org> AuthorDate: Thu Jul 30 06:47:12 2020 +0000 Commit: Zac Medico gentoo org> CommitDate: Tue Aug 4 03:36:51 2020 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=b73bbf1b tox: add pylint Signed-off-by: Zac Medico gentoo.org> setup.py | 16 ++++++++++++++++ tox.ini | 2 ++ 2 files changed, 18 insertions(+) diff --git a/setup.py b/setup.py index bef5c31fa..1c25b9cd7 100755 --- a/setup.py +++ b/setup.py @@ -606,6 +606,21 @@ 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: @@ -706,6 +721,7 @@ 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 050a2c455..7497f4660 100644 --- a/tox.ini +++ b/tox.ini @@ -4,11 +4,13 @@ skipsdist = True [testenv] deps = + pylint pygost pyyaml py36,py37,py38,py39,pypy3: lxml!=4.2.0 setenv = PYTHONPATH={toxinidir}/lib commands = + python -b -Wd setup.py lint python -b -Wd setup.py test python -b -Wd repoman/setup.py test