Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows
Revert "Move pre-commit hook to pre-merge section"
Maximilian Roos49c2b6a9e826
diff --git a/.config/wt.toml b/.config/wt.tomlindex 80db952b8..957804cfc 100644--- a/.config/wt.toml+++ b/.config/wt.toml@@ -29,13 +29,18 @@ build = "cargo build --all-targets"install = "cargo install --path ."sync = 'if [ "{{ target }}" = "main" ]; then git pull && git push; fi'+# Pre-commit hooks+# These run sequentially before committing changes during merge (both squash and no-squash)+# All commands must exit with code 0 for commit to proceed+[pre-commit]+pre-commit = "pre-commit run --all-files"+# Pre-merge hooks# These run sequentially before merging to main# All commands must exit with code 0 for merge to proceed# Note: This must come AFTER post-merge because [pre-merge] starts# a TOML table section, and everything after it would be inside that section[pre-merge]-pre-commit = "pre-commit run --all-files"insta = "RUSTFLAGS='-D warnings' NEXTEST_STATUS_LEVEL=fail NEXTEST_SUCCESS_OUTPUT=never cargo insta test --dnd --check --features shell-integration-tests"doctest = "RUSTDOCFLAGS='-Dwarnings' cargo test --doc"doc = "RUSTDOCFLAGS='-Dwarnings' cargo doc --no-deps"