fix: point cargo pre-commit hooks at rust/prop_grid_rs/Cargo.toml
The cargo clippy and cargo fmt hooks ran from the repo root but the Rust project lives in rust/prop_grid_rs/. Add --manifest-path so they find the Cargo.toml and actually run.
This commit is contained in:
parent
b3ad3bdbe6
commit
3079e8aee6
1 changed files with 3 additions and 3 deletions
|
|
@ -144,11 +144,11 @@ let
|
||||||
pass_filenames = false;
|
pass_filenames = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Rust formatting and linting
|
# Rust formatting and linting (project lives in rust/prop_grid_rs/)
|
||||||
cargo-fmt = {
|
cargo-fmt = {
|
||||||
enable = true;
|
enable = true;
|
||||||
name = "cargo fmt";
|
name = "cargo fmt";
|
||||||
entry = "cargo fmt --all --check";
|
entry = "cargo fmt --manifest-path rust/prop_grid_rs/Cargo.toml --all --check";
|
||||||
files = "\\.rs$";
|
files = "\\.rs$";
|
||||||
pass_filenames = false;
|
pass_filenames = false;
|
||||||
};
|
};
|
||||||
|
|
@ -156,7 +156,7 @@ let
|
||||||
cargo-clippy = {
|
cargo-clippy = {
|
||||||
enable = true;
|
enable = true;
|
||||||
name = "cargo clippy";
|
name = "cargo clippy";
|
||||||
entry = "cargo clippy --all-targets -- -D warnings";
|
entry = "cargo clippy --manifest-path rust/prop_grid_rs/Cargo.toml --all-targets -- -D warnings";
|
||||||
files = "\\.rs$";
|
files = "\\.rs$";
|
||||||
pass_filenames = false;
|
pass_filenames = false;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue