From 4961209719b7b05d919b3888ba856bfcbe04deea Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Fri, 16 Feb 2024 21:55:09 +0100 Subject: [PATCH] lint --- fs/__init__.py | 11 +++++------ grub/__init__.py | 6 +++--- log/__init__.py | 2 +- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/fs/__init__.py b/fs/__init__.py index c222320..56f34db 100644 --- a/fs/__init__.py +++ b/fs/__init__.py @@ -1,6 +1,5 @@ import os import shutil -import subprocess import ps @@ -21,18 +20,18 @@ def empty_file(path: str): def get_mount_uuid(path: str): return ps.run_line( - ('findmnt'), - ('--noheadings'), + ('findmnt',), + ('--noheadings',), ('--output', 'UUID'), - (path), + (path,), ) def get_path_mount(path: str): return ps.run_line( - ('stat'), + ('stat',), ('--format', '%m'), - (path), + (path,), ) diff --git a/grub/__init__.py b/grub/__init__.py index 1d5cf4a..b931ee3 100644 --- a/grub/__init__.py +++ b/grub/__init__.py @@ -10,8 +10,8 @@ ENV_HEADER = f'''{ENV_COMMENT} GRUB Environment Block ''' MODULES = { 'i386-pc': [ - ('biosdisk'), - ('ntldr'), + ('biosdisk',), + ('ntldr',), ] } @@ -19,7 +19,7 @@ MODULES = { def make_image(image_format: str, image_path: str, modules: list[str], memdisk_path: str, pubkey_path: str = None) -> None: args = [ - ('grub-mkimage'), + ('grub-mkimage',), ('--compress', COMPRESSION), ('--format', image_format), ('--output', image_path), diff --git a/log/__init__.py b/log/__init__.py index 51454a9..2cf0b09 100644 --- a/log/__init__.py +++ b/log/__init__.py @@ -4,7 +4,7 @@ import sys def get_logger(name: str) -> logging.Logger: formatter = logging.Formatter( - "%(name)s: %(asctime)s | %(levelname)s | %(filename)s:%(lineno)s | %(process)d >>> %(message)s" + "%(name)s: %(asctime)s | %(levelname)s | %(filename)s:%(lineno)s | %(process)d >>> %(message)s" ) # file_handler = logging.FileHandler('log.txt')