URL: https://github.com/freeipa/freeipa/pull/256 Author: tiran Title: #256: Pylint: whitelist packages with extension modules Action: opened
PR body: """ Pylint refuses to load extension modules from unsafe places. This triggers import-error failures for pylint runs inside a tox virtualenv. Any module or package in extension-pkg-whitelist is whitelisted and pylint imports extension modules. https://fedorahosted.org/freeipa/ticket/6468 Signed-off-by: Christian Heimes <chei...@redhat.com> """ To pull the PR as Git branch: git remote add ghfreeipa https://github.com/freeipa/freeipa git fetch ghfreeipa pull/256/head:pr256 git checkout pr256
From 7c761ceb554dfbc5ab13a781f9ca80fbd6be2e03 Mon Sep 17 00:00:00 2001 From: Christian Heimes <chei...@redhat.com> Date: Fri, 18 Nov 2016 11:31:36 +0100 Subject: [PATCH] Pylint: whitelist packages with extension modules Pylint refuses to load extension modules from unsafe places. This triggers import-error failures for pylint runs inside a tox virtualenv. Any module or package in extension-pkg-whitelist is whitelisted and pylint imports extension modules. https://fedorahosted.org/freeipa/ticket/6468 Signed-off-by: Christian Heimes <chei...@redhat.com> --- pylintrc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pylintrc b/pylintrc index 07acb1f..93075f5 100644 --- a/pylintrc +++ b/pylintrc @@ -9,6 +9,15 @@ load-plugins=pylint_plugins # Use multiple processes to speed up Pylint. jobs=0 +# A list of packages with safe C extensions to load +extension-pkg-whitelist= + _ldap, + cryptography, + gssapi, + netifaces, + nss + + [MESSAGES CONTROL] enable=
-- Manage your subscription for the Freeipa-devel mailing list: https://www.redhat.com/mailman/listinfo/freeipa-devel Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code