Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Jan 11, 2024

Conversation

my-vegetable-has-exploded
Copy link
Contributor

Which issue does this PR close?

Rationale for this change

Sometimes my codes pass checks of pre-commit, but ci still fails. So I am wondering whether keeping the "clippy" consistent between in pre-commit.sh and in CI would be beneficial.

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

@my-vegetable-has-exploded my-vegetable-has-exploded marked this pull request as ready for review January 10, 2024 03:19
Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @my-vegetable-has-exploded -- I think this is better than main and so moves things forward. I left a suggestion to maybe make it even better

@@ -60,7 +60,7 @@ 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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried to just use source ./ci/scripts/rust_clippy.sh here, but with set -ex in it, the process would terminate if clippy is not happy which causes subsequent fmt won't execute.
So I copy the whole cargo command.

@alamb alamb merged commit 36877f3 into apache:main Jan 11, 2024
22 checks passed
@alamb
Copy link
Contributor

alamb commented Jan 11, 2024

Thanks again @my-vegetable-has-exploded

@my-vegetable-has-exploded
Copy link
Contributor Author

Thanks @alamb.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants