This is an automated email from the ASF dual-hosted git repository.
alamb pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-datafusion.git
The following commit(s) were added to refs/heads/main by this push:
new 36877f3e85 Minor: chores: Update clippy in pre-commit.sh (#8810)
36877f3e85 is described below
commit 36877f3e855614149133c979c689cf1d8f16e196
Author: yi wang <[email protected]>
AuthorDate: Thu Jan 11 18:45:57 2024 +0800
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 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.