pydoit_nb.tasks_generation#

Re-usable tools for generating tasks

StepDefiningModuleLike#

class StepDefiningModuleLike(*args, **kwargs)[source]#

Bases: Protocol[C, CB_contra]

Class that behaves like a module which defines a notebook-based step

property step: UnconfiguredNotebookBasedStep[C, CB_contra]#

Step this module defines

generate_all_tasks#

generate_all_tasks(config_bundle, root_dir_raw_notebooks, converter, step_defining_modules, gen_zenodo_bundle_task)[source]#

Generate all tasks in the workflow

This is a helper function for a common pattern. You can obviously do whatever you want in your own projects as there is a lot of flexibility.

Parameters:
Yields:

doit tasks to run

Return type:

collections.abc.Iterable[dict[str, typing.Any]]