Skip to main content

Module init

Module init 

Source
Expand description

blyte init: extracts the gate from CI workflows, detects environment settings, and proves each step in a fresh worktree before writing blyte.toml.

Structs§

InitStep

Enums§

Verdict

Functions§

classify
Classify step output into Passed, Environment problem, or Failed.
detect_ci
Detect check commands from .github/workflows/*.yml and *.yaml.
detect_ci_with_sources
Detect check commands and keep the file name of the workflow where each was first found.
detect_env
Detect repository environment settings (such as UV_FROZEN and UV_OFFLINE).
detect_setup
Propose a worktree setup command when the repository uses a supported package manager.
drop_overlapping
Drop overlapping pytest steps, keeping only the broader of two that test the same files.
failure_excerpt
What to show of a failing step: the test runner’s own summary lines when it printed any (FAILED …, ERROR …, == 2 failed, 900 passed ==), else the last lines. A tail alone can be all shutdown noise.
render_verified
Render the verified blyte.toml content.
run