Module: check_mk
Branch: master
Commit: 81d4e6868ff5125ce2730ed5b8ac7c7ecd689668
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=81d4e6868ff512…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Jul 19 17:46:15 2018 +0200
Allow pylint to check the C extensions we need instead of ignoring them
TODO: The rrdtool module is currently not part of the venv. Add it
and remove the "ignored-modules" option.
Change-Id: Ib81b5fd0d5883436ad76345cdf134b727a3cfb4b
---
tests/pylint/pylintrc | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/tests/pylint/pylintrc b/tests/pylint/pylintrc
index 9f26a30..eb7fea6 100644
--- a/tests/pylint/pylintrc
+++ b/tests/pylint/pylintrc
@@ -9,6 +9,7 @@ init-hook=
load-plugins=testlib.pylint_cmk,testlib.pylint_checker_localization
# TODO: Why do we need persistence?
persistent=yes
+extension-pkg-whitelist=rrdtool,_ldap,netifaces,pymssql
[MESSAGES CONTROL]
disable=
@@ -106,12 +107,8 @@ disable=
# Can not check methods / attributes of the rrdtool C module. Skipping related errors
# like the following:
# [E1101(no-member), create_rrd] Module 'rrdtool' has no 'create'
member
-# ldap
-# The Python ldap module gets a lot of constants from the C API which can not be found
by pylint.
-# This results in a lot of these errors: "Module 'ldap' has no
'OPT_REFERRALS' member".
-# netifaces
-# Can not check methods / attributes of the netifaces C module
-ignored-modules = rrdtool,ldap,netifaces
+# TODO: Add rrdtool to virtualenv and drop this
+ignored-modules = rrdtool
[REPORTS]
output-format=cmk_colorized