Skip to content

Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows

chore: update pre-commit hooks to immutable tags (#336)

Maximilian Roos88ba8be16e13
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index a019ab64c..751b50aaf 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -9,10 +9,9 @@ repos:
- id: trailing-whitespace
# rustfmt handles rust files, and in snapshots we expect trailing spaces.
exclude: '.*\.(rs|snap)$'
- # Commit hash silences mutable ref warning; autoupdate reverts to v1 tag
- # TODO: Update periodically
+ # pre-commit autoupdate reverts to mutable v1 tag; update manually
- repo: https://github.com/crate-ci/typos
- rev: v1
+ rev: v1.41.0
hooks:
- id: typos
# https://github.com/crate-ci/typos/issues/347
@@ -27,7 +26,7 @@ repos:
- id: clippy
args: ["--all-targets", "--all-features", "--", "-D", "warnings"]
- repo: https://github.com/lycheeverse/lychee
- rev: nightly
+ rev: lychee-v0.22.0
hooks:
# Check links using .config/lychee.toml exclusions
# Uses lychee-system (requires `cargo install lychee`) to avoid /bin/bash dependency on Windows
diff --git a/tests/integration_tests/approval_ui.rs b/tests/integration_tests/approval_ui.rs
index 199574fb2..e79f2c7b5 100644
--- a/tests/integration_tests/approval_ui.rs
+++ b/tests/integration_tests/approval_ui.rs
@@ -611,6 +611,7 @@ third = "echo 'third' >> output.txt"
///
/// The select command requires an interactive terminal for its TUI.
/// When stdin is not a TTY, it should fail with a clear error.
+#[cfg(unix)] // select command is unix-only
#[rstest]
fn test_select_fails_in_non_tty(repo: TestRepo) {
let settings = setup_snapshot_settings(&repo);