From 9dd160ba444c969397d467cee94fabebdd3d7b5a Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Thu, 30 Jan 2020 09:56:33 -0800 Subject: [PATCH] pylint: whitelist the rpm module Without this, depending on which version of pylint is used, you may see errors related to the rpm.RPMTAG_* constants. This makes sure that pylint allows loading the rpm module. --- tests/pylint/runpylint.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/pylint/runpylint.py b/tests/pylint/runpylint.py index f1d5c70b..8e5ea08c 100755 --- a/tests/pylint/runpylint.py +++ b/tests/pylint/runpylint.py @@ -28,6 +28,10 @@ class LoraxLintConfig(PocketLintConfig): def ignoreNames(self): return { "bots", "rpmbuild" } + @property + def extraArgs(self): + return ["--extension-pkg-whitelist=rpm"] + if __name__ == "__main__": conf = LoraxLintConfig() linter = PocketLinter(conf)