Summary
There is no way to automatically run lint/format checks before shipping. When cargo fmt fails in CI, an additional commit + push cycle is needed.
Proposed Solution
Add pre_ship hooks in config.toml:
[hooks]
pre_ship = ["cargo fmt --check", "cargo clippy"]
On failure, abort ship with error output. --skip-hooks flag to bypass.
Context
After ship, CI failed on cargo fmt → had to re-checkout branch → fix formatting → push additional commit
Summary
There is no way to automatically run lint/format checks before shipping. When
cargo fmtfails in CI, an additional commit + push cycle is needed.Proposed Solution
Add pre_ship hooks in
config.toml:On failure, abort ship with error output.
--skip-hooksflag to bypass.Context
After ship, CI failed on
cargo fmt→ had to re-checkout branch → fix formatting → push additional commit