1
0
Fork 1
mirror of https://gitlab.postmarketos.org/postmarketOS/pmbootstrap.git synced 2025-07-13 03:19:47 +03:00

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

@ -128,8 +128,7 @@ def get_upstream_remote(aports: Path) -> str:
return line.split("\t", 1)[0]
raise RuntimeError(
f"{name_repo}: could not find remote name for any URL '{urls}' in git"
f" repository: {aports}"
f"{name_repo}: could not find remote name for any URL '{urls}' in git repository: {aports}"
)
@ -220,9 +219,7 @@ def parse_channels_cfg(aports: Path) -> dict:
try:
cfg.read_string(stdout)
except configparser.MissingSectionHeaderError:
logging.info(
"NOTE: fix this by fetching your pmaports.git, e.g." " with 'pmbootstrap pull'"
)
logging.info("NOTE: fix this by fetching your pmaports.git, e.g. with 'pmbootstrap pull'")
raise RuntimeError(
"Failed to read channels.cfg from"
f" '{remote}/master' branch of your local"