From 1af51350137944d1551671bdac95dc804ce004ef Mon Sep 17 00:00:00 2001 From: correctmost <134317971+correctmost@users.noreply.github.com> Date: Sat, 16 Nov 2024 01:07:14 -0500 Subject: [PATCH] Enable the flake8-implicit-str-concat Ruff rules (#2819) --- archinstall/lib/installer.py | 8 ++++++-- pyproject.toml | 1 + 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py index 09ac3bcb..47fb3b71 100644 --- a/archinstall/lib/installer.py +++ b/archinstall/lib/installer.py @@ -1265,8 +1265,10 @@ class Installer: except Exception as err: raise DiskError(f'Failed to install Limine in {self.target}{efi_partition.mountpoint}: {err}') - hook_command = f'/usr/bin/cp /usr/share/limine/BOOTIA32.EFI {efi_partition.mountpoint}/EFI/BOOT/' \ + hook_command = ( + f'/usr/bin/cp /usr/share/limine/BOOTIA32.EFI {efi_partition.mountpoint}/EFI/BOOT/' f' && /usr/bin/cp /usr/share/limine/BOOTX64.EFI {efi_partition.mountpoint}/EFI/BOOT/' + ) else: parent_dev_path = disk.device_handler.get_parent_device_path(boot_partition.safe_dev_path) @@ -1282,8 +1284,10 @@ class Installer: except Exception as err: raise DiskError(f'Failed to install Limine on {parent_dev_path}: {err}') - hook_command = f'/usr/bin/limine bios-install {parent_dev_path}' \ + hook_command = ( + f'/usr/bin/limine bios-install {parent_dev_path}' f' && /usr/bin/cp /usr/share/limine/limine-bios.sys /boot/' + ) hook_contents = f'''[Trigger] Operation = Install diff --git a/pyproject.toml b/pyproject.toml index 65a7971c..b51cb7eb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -185,6 +185,7 @@ select = [ "FLY", # flynt "G", # flake8-logging-format "ICN", # flake8-import-conventions + "ISC", # flake8-implicit-str-concat "LOG", # flake8-logging "PIE", # flake8-pie "PLC", # Pylint conventions