(
self: "Repo",
no_exec: bool = False,
no_commit: bool = False,
run_cache: bool = True,
force: bool = True,
**kwargs,
)
| 14 | @locked |
| 15 | @scm_context |
| 16 | def run( |
| 17 | self: "Repo", |
| 18 | no_exec: bool = False, |
| 19 | no_commit: bool = False, |
| 20 | run_cache: bool = True, |
| 21 | force: bool = True, |
| 22 | **kwargs, |
| 23 | ) -> Union["Stage", "PipelineStage"]: |
| 24 | assert not kwargs.get("single_stage") |
| 25 | assert not kwargs.get("fname") |
| 26 | kwargs.update({"force": force, "params": parse_params(kwargs.get("params", []))}) |
| 27 | stage = self.stage.create(**kwargs) |
| 28 | |
| 29 | if no_exec: |
| 30 | stage.ignore_outs() |
| 31 | else: |
| 32 | stage.run(no_commit=no_commit, run_cache=run_cache) |
| 33 | |
| 34 | stage.dump(update_lock=not no_exec) |
| 35 | return stage |
no test coverage detected