Skip to content

Apache DataFusion SQL Query Engine

Minor: chores: Update clippy in pre-commit.sh (#8810)

yi wang36877f3e8556
diff --git a/pre-commit.sh b/pre-commit.sh
index f82390e229..09cf431a14 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.