From b033533e3bc56a579dd8bc7cc5220f34f7c30c19 Mon Sep 17 00:00:00 2001 From: Leonardo Fagundes Luz Serrano Date: Wed, 7 May 2025 17:48:18 -0300 Subject: [PATCH] Tox/Zuul: Fix import-error pylint messages The stx-utilities-tox-pylint zuul job is failing due to not being able to import certain modules which are only available during runtime. To fix this, adjusted .pylintrc to ignore import errors for these specific runtime modules. In addition, renamed the pylint config file from "pylint.rc" to the standard ".pylintrc" Test Plan: pass - Zuul test passing Partial-Bug: 2110076 Change-Id: I03e384ee713d403f82f0a5dc2a120c29ac808fc4 Signed-off-by: Leonardo Fagundes Luz Serrano --- pylint.rc => .pylintrc | 5 ++++- tox.ini | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) rename pylint.rc => .pylintrc (98%) diff --git a/pylint.rc b/.pylintrc similarity index 98% rename from pylint.rc rename to .pylintrc index c14464d2..0ef0077f 100755 --- a/pylint.rc +++ b/.pylintrc @@ -204,7 +204,10 @@ ignore-mixin-members=yes # List of module names for which member attributes should not be checked # (useful for modules/projects where namespaces are manipulated during runtime # and thus existing member attributes cannot be deduced by static analysis -ignored-modules=distutils,eventlet.green.subprocess,six,six.moves +ignored-modules = fm_api, + six, + sysinv.common, + tsconfig # List of classes names for which member attributes should not be checked # (useful for classes with attributes dynamically set). diff --git a/tox.ini b/tox.ini index 14ae67cd..4d4c857b 100644 --- a/tox.ini +++ b/tox.ini @@ -99,7 +99,7 @@ commands = pylint {posargs} \ utilities/logmgmt/logmgmt/logmgmt/ \ utilities/pci-irq-affinity-agent/pci_irq_affinity/pci_irq_affinity \ utilities/platform-util/platform-util/platform_util \ - --rcfile=./pylint.rc + --rcfile=./.pylintrc [testenv:sorted] # sort acts differently on Ubuntu and Debian