From baebbae64ce881571f782d45959d13733be49973 Mon Sep 17 00:00:00 2001 From: Manuel Raimann Date: Thu, 12 Feb 2026 14:27:00 +0100 Subject: [PATCH] docs: add pre-commit guidelines for formatting and testing --- .claude/commands/commit-push-pr.md | 5 +++++ .claude/commands/commit-push.md | 5 +++++ .claude/commands/commit.md | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/.claude/commands/commit-push-pr.md b/.claude/commands/commit-push-pr.md index b29a7df..f757343 100644 --- a/.claude/commands/commit-push-pr.md +++ b/.claude/commands/commit-push-pr.md @@ -94,3 +94,8 @@ gh pr create --title "" --base <target-branch> --body "$(cat <<'EOF' EOF )" ``` + +## Before you commit + +1. Run `cargo +nightly fmt --all && cargo +nightly clippy --all-features --all-targets --fix --allow-dirty` to auto-format and fix lint issues. +2. Run all tests and doctests to ensure nothing is broken. diff --git a/.claude/commands/commit-push.md b/.claude/commands/commit-push.md index a3f38c7..16907a8 100644 --- a/.claude/commands/commit-push.md +++ b/.claude/commands/commit-push.md @@ -75,3 +75,8 @@ git commit -m "$(cat <<'EOF' EOF )" ``` + +## Before you commit + +1. Run `cargo +nightly fmt --all && cargo +nightly clippy --all-features --all-targets --fix --allow-dirty` to auto-format and fix lint issues. +2. Run all tests and doctests to ensure nothing is broken. diff --git a/.claude/commands/commit.md b/.claude/commands/commit.md index 50d3362..d0f4a28 100644 --- a/.claude/commands/commit.md +++ b/.claude/commands/commit.md @@ -74,3 +74,8 @@ git commit -m "$(cat <<'EOF' EOF )" ``` + +## Before you commit + +1. Run `cargo +nightly fmt --all && cargo +nightly clippy --all-features --all-targets --fix --allow-dirty` to auto-format and fix lint issues. +2. Run all tests and doctests to ensure nothing is broken.