mirror of
https://gitlab.postmarketos.org/postmarketOS/pmbootstrap.git
synced 2025-07-13 03:19:47 +03:00
Auto-format codebase with ruff (MR 2325)
See: https://gitlab.com/postmarketOS/pmbootstrap/-/issues/2324 Closes: https://gitlab.com/postmarketOS/pmbootstrap/-/merge_requests/2278
This commit is contained in:
parent
5a8e2c6cad
commit
e421bb2d41
109 changed files with 4044 additions and 2984 deletions
|
@ -12,6 +12,7 @@ import pmb.build
|
|||
import pmb.helpers.run
|
||||
import pmb.helpers.pmaports
|
||||
|
||||
|
||||
# FIXME: dest_paths[repo], repo expected to be a Literal.
|
||||
# We should really make Config.mirrors not a TypedDict.
|
||||
# mypy: disable-error-code="index"
|
||||
|
@ -57,8 +58,11 @@ def check(pkgnames: Sequence[str]):
|
|||
|
||||
# For each pkgrepo run the linter on the relevant packages
|
||||
for pkgrepo, apkbuild_paths in apkbuilds.items():
|
||||
pmb.chroot.root(["apkbuild-lint"] + apkbuild_paths,
|
||||
check=False, output="stdout",
|
||||
output_return=True,
|
||||
working_dir=dest_paths[repo],
|
||||
env={"CUSTOM_VALID_OPTIONS": " ".join(options)})
|
||||
pmb.chroot.root(
|
||||
["apkbuild-lint"] + apkbuild_paths,
|
||||
check=False,
|
||||
output="stdout",
|
||||
output_return=True,
|
||||
working_dir=dest_paths[repo],
|
||||
env={"CUSTOM_VALID_OPTIONS": " ".join(options)},
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue