diff --git a/snakebids/bidsapp/run.py b/snakebids/bidsapp/run.py index 44841ad6..93c7cf5b 100644 --- a/snakebids/bidsapp/run.py +++ b/snakebids/bidsapp/run.py @@ -203,4 +203,3 @@ def run(self, args: list[str] | None = None): self.parse_args(args) self.pm.hook.run(config=self.config) self._run = True - return self diff --git a/snakebids/snakemake_compat.pyi b/snakebids/snakemake_compat.pyi index 0809f11d..0d5fd9b0 100644 --- a/snakebids/snakemake_compat.pyi +++ b/snakebids/snakemake_compat.pyi @@ -1,9 +1,12 @@ from argparse import ArgumentParser from pathlib import Path +from types import ModuleType from typing import Any, Callable, Iterable, Sequence from snakemake.common import configfile as configfile # type: ignore +configfile: ModuleType + class WildcardError(Exception): ... def load_configfile(configpath: str) -> dict[str, Any]: diff --git a/snakebids/tests/test_bidsapp.py b/snakebids/tests/test_bidsapp.py index 321ead2c..9c9d8ecb 100644 --- a/snakebids/tests/test_bidsapp.py +++ b/snakebids/tests/test_bidsapp.py @@ -106,9 +106,9 @@ def test_parse_args(self): def test_run(self): app = bidsapp.app(plugins=[self]) - app.run(args=["default"]) + assert app.run(args=["default"]) is None assert self.hooks_run == 7 - app.run(args=["default"]) + assert app.run(args=["default"]) is None assert self.hooks_run == 7