Skip to content

Support a task that runs a list of tasks #89

@dbrtly

Description

@dbrtly

This is cool. Thank you.

I'd like to create a task that runs a list of tasks. Here ci:

[tool.taskipy.settings]
cwd = "." # run all tasks in the project root directory
runner = "uv run --group" # https://github.com/taskipy/taskipy/blob/master/docs/ADVANCED_FEATURES.md#custom-runners

[tool.taskipy.tasks]
# all tasks run in the task runner context
ci = { tasks = ["lint", "fmt", "typed", "test"], help = "runs lint, format, type-checks and tests" }
fmt = { cmd = "style ruff format .", help = "formats Python code using ruff" }
lint = { cmd = "style ruff check .", help = "confirms Python code style using ruff" }
test = { cmd = "test pytest", help = "runs all unit tests for Python." }
typed = { cmd = "test pytype --job auto", help = "runs  standards-based static type checker for Python." }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions