Closed aesteve-rh closed 1 year ago
Pylint issues seen in: https://github.com/oVirt/vdsm/actions/runs/3125767831/jobs/5070498445
no-member
is a pylint Error, and is globally enabled (with all the other errors) in this line: https://github.com/oVirt/vdsm/blob/master/pylintrc#L68
But then I was looking for the place where this is disabled in current code, and turns they are already ignored in the affected files: https://github.com/oVirt/vdsm/blob/master/lib/vdsm/virt/vmdevices/lease.py#L20
I will close this PR and handle it in the copyright branch, that is mistakenly removing this line.
A few classes in vm devices use
__slots__
to define class attributes that are not properly detected by pylint, causing false positive no-member errors:Since no-member is an interesting error that we do not want to disable project-wide, better to just add pylint ignore comments in the classes that use this strategy.
Signed-off-by: Albert Esteve aesteve@redhat.com