From b35d9596826e3e03f0040b3f51f8b79e0df4c33d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= Date: Fri, 25 Oct 2024 18:14:06 +0100 Subject: [PATCH] Silence pylint errors. --- check_substitutes.py | 2 +- lib/target.py | 2 +- lib/utils.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/check_substitutes.py b/check_substitutes.py index 177bf688..906ac0c7 100755 --- a/check_substitutes.py +++ b/check_substitutes.py @@ -57,7 +57,7 @@ def download(self): def decompress(self): """Decompresses the distfile.""" - compression = self.out_file.split('.')[-1] + compression = self.out_file.rsplit('.', maxsplit=1)[-1] decompress_func = { "gz": gzip.open, "tgz": gzip.open, diff --git a/lib/target.py b/lib/target.py index 3aa0d3d6..81664e4a 100644 --- a/lib/target.py +++ b/lib/target.py @@ -38,7 +38,7 @@ def tmpfs(self, size="8G"): mount("tmpfs", self.path, "tmpfs", f"size={size}") self._type = TargetType.TMPFS - # pylint: disable=too-many-arguments + # pylint: disable=too-many-arguments,too-many-positional=arguments def add_disk(self, name, size="16G", diff --git a/lib/utils.py b/lib/utils.py index 1e4f2af6..efa9550d 100755 --- a/lib/utils.py +++ b/lib/utils.py @@ -31,7 +31,7 @@ def run_as_root(*args, **kwargs): return run("sudo", *args, **kwargs) return run(*args, **kwargs) -# pylint: disable=too-many-arguments +# pylint: disable=too-many-arguments,too-many-positional-arguments def create_disk(image, disk_type, fs_type, size, bootable=False, mkfs_args=None): """Create a disk image, with a filesystem on it""" if mkfs_args is None: