Skip to content

Commit

Permalink
🏷️ pyright fixes
Browse files Browse the repository at this point in the history
Signed-off-by: rjdbcm <[email protected]>
  • Loading branch information
rjdbcm committed Aug 23, 2024
1 parent f572c2d commit 972be3c
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions ozi/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,15 @@

@task
def setup(
c: Context, suite: str = 'dist', draft: bool = False, __ozi: bool = False
c: Context,
suite: str = 'dist',
draft: bool = False,
ozi: bool = False,
) -> None | Result:
"""Setup a meson build directory for an OZI suite."""
target = Path(f'.tox/{suite}/tmp').absolute() # noqa: S108
env_dir = Path(f'.tox/{suite}').absolute()
if __ozi:
if ozi:
c.run(
f'meson setup {target} -D{suite}=enabled -Dtox-env-dir={env_dir} --reconfigure',
)
Expand Down Expand Up @@ -73,9 +76,9 @@ def sign_checkpoint(c: Context, suite: str | None = None) -> None:


@task
def checkpoint(c: Context, suite: str, maxfail: int = 1, __ozi: bool = False) -> None:
def checkpoint(c: Context, suite: str, maxfail: int = 1, ozi: bool = False) -> None:
"""Run OZI checkpoint suites with meson test."""
setup(c, suite=suite, draft=False, __ozi=__ozi)
setup(c, suite=suite, draft=False, ozi=ozi)
target = Path(f'.tox/{suite}/tmp').absolute() # noqa: S108
c.run(
f'meson test --no-rebuild --maxfail={maxfail} -C {target} --setup={suite}',
Expand Down

0 comments on commit 972be3c

Please sign in to comment.