logo

live-bootstrap

Mirror of <https://github.com/fosslinux/live-bootstrap>
commit: 9950b07204aa51d813f08ca023258bb387dc5192
parent b120a39ec60cdbaf77e1c2c06855578e0d459f7e
Author: Andrius Štikonas <andrius@stikonas.eu>
Date:   Fri, 25 Oct 2024 18:14:06 +0100

Silence pylint errors.

Diffstat:

Mcheck_substitutes.py2+-
Mlib/target.py2+-
Mlib/utils.py2+-
3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/check_substitutes.py b/check_substitutes.py @@ -57,7 +57,7 @@ class Distfile(): 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 @@ -38,7 +38,7 @@ class Target: 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 @@ -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: