Skip to content

Commit

Permalink
Silence pylint errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
stikonas committed Oct 25, 2024
1 parent b120a39 commit b35d959
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion check_substitutes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion lib/target.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion lib/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit b35d959

Please sign in to comment.