Compose tasks using hooks and grouping
masterTaskipy allows you to create complex workflows by composing tasks.
Grouping Subtasks
You can create a composite task by stringing multiple tasks together using shell operators like &&.
Pre-task Hooks
To make a task depend on another, create a task named pre_<task_name>. Taskipy will run this hook before the main task. If the hook fails, the main task will not run.
Post-task Hooks
To run a task after a successful execution, create a task named post_<task_name>. Taskipy will run this hook only if the main task succeeds. If the main task fails, the hook will not run.
[tool.taskipy.tasks]
build = "make ."
pre_test = "task build"
test = "python -m unittest tests/test_*.py"
lint = "pylint tests"
post_test = "task lint"