summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Heimes <cheimes@redhat.com>2016-11-18 11:31:36 +0100
committerMartin Basti <mbasti@redhat.com>2016-11-22 17:37:39 +0100
commit573eee444e1746fd5949897294c96a1793e74511 (patch)
treefba86c4b58876665fdbee6f775acf1ef8e0bc541
parent0914fc6a6043846159f6d1c4bb433dcfe9ee3f46 (diff)
downloadfreeipa-573eee444e1746fd5949897294c96a1793e74511.tar.gz
freeipa-573eee444e1746fd5949897294c96a1793e74511.tar.xz
freeipa-573eee444e1746fd5949897294c96a1793e74511.zip
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 <cheimes@redhat.com> Reviewed-By: Martin Basti <mbasti@redhat.com>
-rw-r--r--pylintrc9
1 files changed, 9 insertions, 0 deletions
diff --git a/pylintrc b/pylintrc
index 07acb1f5d..93075f54b 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=