plugin/builder: silence some pylint warnings

The 'koji' parameter for the compose request is called that way to
follow the OpenAPI spec, so silence the "redefined-outer-name"
warning.

The handler function needs have the actual task arguments and thus
on purpose deviates from the argument list of the base class'
handler method. So silence that.
This commit is contained in:
Christian Kellner 2020-09-11 12:52:32 +02:00 committed by Tom Gundersen
parent 6f1d685d9b
commit e3ce5f7c7b

View file

@ -88,6 +88,7 @@ class ComposeRequest:
self.server = server
self.task_id = task_id
# pylint: disable=redefined-outer-name
def __init__(self, nvr: NVR, distro: str, ireqs: List[ImageRequest], koji: Koji):
self.nvr = nvr
self.distribution = distro
@ -246,6 +247,7 @@ class OSBuildImage(BaseTaskHandler):
self.logger.debug("user repo override: %s", urls)
return [Repository(u.strip()) for u in urls]
# pylint: disable=arguments-differ
def handler(self, name, version, distro, image_types, target, arches, opts):
"""Main entry point for the task"""
self.logger.debug("Building image via osbuild %s, %s, %s, %s",