pmb: Reformat with Ruff 0.9 (MR 2525)

See https://astral.sh/blog/ruff-v0.9.0
This commit is contained in:
Newbyte 2025-01-11 15:15:48 +01:00 committed by Oliver Smith
parent 2be49f8caf
commit 3061e702ab
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
48 changed files with 114 additions and 145 deletions

View file

@ -93,7 +93,7 @@ def chroot_check_channel(chroot: Chroot) -> bool:
" To do this automatically, run 'pmbootstrap config"
" auto_zap_misconfigured_chroots yes'."
)
msg_unknown = "Could not figure out on which release channel the" f" '{chroot}' chroot is."
msg_unknown = f"Could not figure out on which release channel the '{chroot}' chroot is."
if not os.path.exists(path):
raise RuntimeError(f"{msg_unknown} {msg_again}")
@ -115,7 +115,7 @@ def chroot_check_channel(chroot: Chroot) -> bool:
if config.auto_zap_misconfigured_chroots.noisy():
logging.info(msg)
logging.info(
"Automatically zapping since" " auto_zap_misconfigured_chroots is enabled."
"Automatically zapping since auto_zap_misconfigured_chroots is enabled."
)
logging.info(
"NOTE: You can silence this message with 'pmbootstrap"