zuke.tools.turbo

← Python API reference

@zuke/turbo 1.0.1: @zuke/turbo — typed TurboTasks wrappers for the [Turborepo](https://turbo.build) CLI, for use in Zuke builds.

Symbols

#

TurboPruneSettings

class
class TurboPruneSettings(TurboSettings)

Settings for turbo prune.

  • package(name: str) -> Self

    The package to prune the workspace down to (required).

  • docker() -> Self

    Produce a Docker-friendly layout (--docker).

  • out_dir(path: str) -> Self

    Output directory (--out-dir).

#

TurboRunSettings

class
class TurboRunSettings(TurboSettings)

Settings for turbo run.

  • tasks(*names: str) -> Self

    The package.json task(s) to run (positional; at least one required).

  • filter(pattern: str) -> Self

    Restrict to matching packages (--filter); repeatable.

  • parallel() -> Self

    Run tasks in parallel, ignoring dependencies (--parallel).

  • concurrency(value: str) -> Self

    Limit concurrency, e.g. 10 or 50% (--concurrency).

  • force() -> Self

    Ignore cache hits and force execution (--force).

  • no_cache() -> Self

    Disable reading and writing the cache (--no-cache).

  • continue_() -> Self

    Continue running tasks even after one fails (--continue).

  • dry_run() -> Self

    List what would run without executing (--dry-run).

  • output_logs(mode: str) -> Self

    Output-log mode, e.g. full, hash-only, errors-only (--output-logs).

#

TurboSettings

class
class TurboSettings(ToolSettings)

Base for all turbo subcommand settings: the binary is turbo.

#

TurboTasks

class
class TurboTasks

Typed task functions for the turbo CLI.

  • static async run(ctx: ServiceContext, configure: Callable[[TurboRunSettings], TurboRunSettings] | None=None) -> ExecResult

    Run workspace tasks: turbo run.

  • static async prune(ctx: ServiceContext, configure: Callable[[TurboPruneSettings], TurboPruneSettings] | None=None) -> ExecResult

    Prune the workspace to a package: turbo prune.