Enable the flake8-implicit-str-concat Ruff rules (#2819)
This commit is contained in:
parent
3b3dca7bc1
commit
1af5135013
|
|
@ -1265,8 +1265,10 @@ class Installer:
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
raise DiskError(f'Failed to install Limine in {self.target}{efi_partition.mountpoint}: {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/'
|
f' && /usr/bin/cp /usr/share/limine/BOOTX64.EFI {efi_partition.mountpoint}/EFI/BOOT/'
|
||||||
|
)
|
||||||
else:
|
else:
|
||||||
parent_dev_path = disk.device_handler.get_parent_device_path(boot_partition.safe_dev_path)
|
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:
|
except Exception as err:
|
||||||
raise DiskError(f'Failed to install Limine on {parent_dev_path}: {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/'
|
f' && /usr/bin/cp /usr/share/limine/limine-bios.sys /boot/'
|
||||||
|
)
|
||||||
|
|
||||||
hook_contents = f'''[Trigger]
|
hook_contents = f'''[Trigger]
|
||||||
Operation = Install
|
Operation = Install
|
||||||
|
|
|
||||||
|
|
@ -185,6 +185,7 @@ select = [
|
||||||
"FLY", # flynt
|
"FLY", # flynt
|
||||||
"G", # flake8-logging-format
|
"G", # flake8-logging-format
|
||||||
"ICN", # flake8-import-conventions
|
"ICN", # flake8-import-conventions
|
||||||
|
"ISC", # flake8-implicit-str-concat
|
||||||
"LOG", # flake8-logging
|
"LOG", # flake8-logging
|
||||||
"PIE", # flake8-pie
|
"PIE", # flake8-pie
|
||||||
"PLC", # Pylint conventions
|
"PLC", # Pylint conventions
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue