From d7e0c6d88624d89a1a6c2ae5b63635e8610fc671 Mon Sep 17 00:00:00 2001 From: Vitor Py Braga <12871+vitorpy@users.noreply.github.com> Date: Sat, 4 Oct 2025 22:23:14 +0800 Subject: [PATCH] Add pre-commit hook config --- .pre-commit-config.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..2813cbc --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,18 @@ +# Pre-commit configuration for Tangled workspace +# Uses local hooks to avoid network fetches and to run with system toolchain + +repos: + - repo: local + hooks: + - id: rustfmt + name: rustfmt (cargo fmt --check) + entry: cargo fmt --all -- --check + language: system + types: [rust] + pass_filenames: false + - id: clippy + name: clippy (cargo clippy -D warnings) + entry: bash -lc 'cargo clippy --all-targets -- -D warnings' + language: system + types: [rust] + pass_filenames: false -- 2.51.2