From 573eee444e1746fd5949897294c96a1793e74511 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Nov 22 2016 16:37:39 +0000 Subject: 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 Reviewed-By: Martin Basti --- 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=