summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Widman <jeff@jeffwidman.com>2018-10-24 12:58:41 -0700
committerJeff Widman <jeff@jeffwidman.com>2018-10-24 13:16:34 -0700
commit6380c1db52b6b4d06a189bbfad62e3393cde60c8 (patch)
tree052c99ec631b6713a8f8cf1c66c8bba1a1369347
parenta7e28aeacf6579720594bfe9201a8945d2935c3e (diff)
downloadkafka-python-6380c1db52b6b4d06a189bbfad62e3393cde60c8.tar.gz
Prevent `pylint` import errors on `six.moves`
`six.moves` is a dynamically-created namespace that doesn't actually exist and therefore `pylint` can't statically analyze it. By default, `pylint` is smart enough to realize that and ignore the import errors. However, because we vendor it, the location changes to `kafka.vendor.six.moves` so `pylint` doesn't realize it should be ignored. So this explicitly ignores it. `pylint` documentation of this feature: http://pylint.pycqa.org/en/1.9/technical_reference/features.html?highlight=ignored-modules#id34 More background: * https://github.com/PyCQA/pylint/issues/1640 * https://github.com/PyCQA/pylint/issues/223
-rw-r--r--pylint.rc1
1 files changed, 1 insertions, 0 deletions
diff --git a/pylint.rc b/pylint.rc
index d22e523..851275b 100644
--- a/pylint.rc
+++ b/pylint.rc
@@ -1,5 +1,6 @@
[TYPECHECK]
ignored-classes=SyncManager,_socketobject
+ignored-modules=kafka.vendor.six.moves
generated-members=py.*
[MESSAGES CONTROL]