All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tests/functional: fix pylint false positives for cv2 module
@ 2026-08-15  7:24 marcandre.lureau
  2026-08-17  7:18 ` Thomas Huth
  0 siblings, 1 reply; 6+ messages in thread
From: marcandre.lureau @ 2026-08-15  7:24 UTC (permalink / raw)
  To: qemu-devel; +Cc: th.huth+qemu, Marc-André Lureau

From: Marc-André Lureau <marcandre.lureau@redhat.com>

Add generated-members=cv2.* to pylintrc so pylint skips member
checking on the cv2 C extension module, whose members are not
visible to static analysis.

Silence:
2026-08-15 10:42:08,710 - INFO: qemu-test.test_pylint Checking files in /home/elmarco/src/qemu.qom-qapi/tests/functional/arm with pylint
2026-08-15 10:42:10,941 - ERROR: qemu-test.test_pylint "/home/elmarco/src/qemu.qom-qapi/tests/functional/arm/test_integratorcp.py:83: E1101: Module 'cv2' has no 'imread' member (no-member)"

Note: I also tried with extension-pkg-allow-list, but that didn't work
for some reason.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
---
 tests/functional/pylintrc | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/tests/functional/pylintrc b/tests/functional/pylintrc
index 949bea611fe4..373aabd6ca3f 100644
--- a/tests/functional/pylintrc
+++ b/tests/functional/pylintrc
@@ -79,6 +79,12 @@ disable=bad-inline-option,
         useless-suppression,
 
 
+[TYPECHECK]
+
+# cv2 is a C extension module whose members are not visible to pylint
+generated-members=cv2.*
+
+
 [SIMILARITIES]
 
 # Minimum lines number of a similarity.
-- 
2.55.0.543.g5ebe2ebe4ea8



^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-08-17 11:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-15  7:24 [PATCH] tests/functional: fix pylint false positives for cv2 module marcandre.lureau
2026-08-17  7:18 ` Thomas Huth
2026-08-17  7:57   ` Marc-André Lureau
2026-08-17  8:38     ` Thomas Huth
2026-08-17 10:54       ` Marc-André Lureau
2026-08-17 11:01         ` Thomas Huth

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.