- Before every commit:
nu -c "use toolkit.nu; toolkit fmt"andnu -c "use toolkit.nu; toolkit clippy" - Before every PR:
nu -c "use toolkit.nu; toolkit check pr"(runs fmt, clippy, test, test stdlib) - Run tests:
nu -c "use toolkit.nu; toolkit test"orcargo test --workspace - Never use
.unwrap()- always handle errors withShellErrororParseError - No panicking on user input, no nightly features, no GPL deps (MIT only)
- Commands in
crates/nu-command/src/implementCommandtrait - add examples inexamples()(they become tests) - Check deps:
cargo tree --duplicates- use workspace deps, exact semver"1.2.3", no git deps in PRs - See rust_style.md, FAQ.md, HOWTOS.md
- Title format:
Fix URL parsing inhttp get(#1234) - Must pass:
nu -c "use toolkit.nu; toolkit check pr"(fmt, clippy, test, stdlib) - Include release notes summary (brief, user-focused)
- Link issues: "Fixes #1234" or "Closes #5678"
- See CONTRIBUTING.md