mirror of
https://gitlab.postmarketos.org/postmarketOS/pmbootstrap.git
synced 2025-07-13 03:19:47 +03:00
make mypy happy (MR 2252)
Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
This commit is contained in:
parent
f2ca9c618e
commit
0365438134
10 changed files with 19 additions and 14 deletions
|
@ -12,7 +12,9 @@ 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"
|
||||
def check(pkgnames: Sequence[str]):
|
||||
"""Run apkbuild-lint on the supplied packages.
|
||||
|
||||
|
@ -54,7 +56,7 @@ def check(pkgnames: Sequence[str]):
|
|||
options = pmb.config.apkbuild_custom_valid_options
|
||||
|
||||
# For each pkgrepo run the linter on the relevant packages
|
||||
for repo, apkbuild_paths in apkbuilds.items():
|
||||
for pkgrepo, apkbuild_paths in apkbuilds.items():
|
||||
pmb.chroot.root(["apkbuild-lint"] + apkbuild_paths,
|
||||
check=False, output="stdout",
|
||||
output_return=True,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue