From 36877f3e855614149133c979c689cf1d8f16e196 Mon Sep 17 00:00:00 2001 From: yi wang <48236141+my-vegetable-has-exploded@users.noreply.github.com> Date: Thu, 11 Jan 2024 18:45:57 +0800 Subject: [PATCH] Minor: chores: Update clippy in pre-commit.sh (#8810) * Update clippy in pre-commit.sh * add datafusion-cli --- pre-commit.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pre-commit.sh b/pre-commit.sh index f82390e229a9..09cf431a1409 100755 --- a/pre-commit.sh +++ b/pre-commit.sh @@ -60,7 +60,10 @@ echo -e "$(GREEN INFO): cargo clippy ..." # Cargo clippy always return exit code 0, and `tee` doesn't work. # So let's just run cargo clippy. -cargo clippy +cargo clippy --all-targets --workspace --features avro,pyarrow -- -D warnings +pushd datafusion-cli +cargo clippy --all-targets --all-features -- -D warnings +popd echo -e "$(GREEN INFO): cargo clippy done" # 2. cargo fmt: format with nightly and stable.