# anchors .cargo_fmt_check: &cargo_fmt_check !inline |- cargo +nightly fmt --all -- --check .cargo_test: &cargo_test !inline |- cargo test --all hooks: "pre-commit": # pre-commit hook - command: *cargo_fmt_check # re-use anchor - command: *cargo_test - command: !inline 'cargo doc --no-deps' verbosity: stderr # [all, none, stdout, stderr] severity: warn # [error, warn] "pre-push": # pre-push hook - command: *cargo_fmt_check - command: *cargo_test