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 <Leonardo.FagundesLuzSerrano@windriver.com>
This commit is contained in:
Leonardo Fagundes Luz Serrano
2025-05-07 17:48:18 -03:00
parent ba0efbfda6
commit b033533e3b
2 changed files with 5 additions and 2 deletions

View File

@@ -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).

View File

@@ -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