Enable the flake8-implicit-str-concat Ruff rules (#2819)

This commit is contained in:
correctmost 2024-11-16 01:07:14 -05:00 committed by GitHub
parent 3b3dca7bc1
commit 1af5135013
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 2 deletions

View File

@ -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

View File

@ -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