-
Notifications
You must be signed in to change notification settings - Fork 157
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
Add shellcheck to pre-commit and fix warnings #1515
Conversation
Hmm, it looks like the taxi zone geojson file has disappeared from the NYC Open Data page, which is causing the NYC notebook to fail. |
#1517 has been merged so this PR should pass now with an update with the 25.02 branch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm good with this! Love that this caught a couple of unused variables so we could simplify these scripts a bit.
Left one small cosmetic suggestion, do whatever you want with it. I don't feel that strongly.
@@ -13,8 +13,6 @@ export CMAKE_GENERATOR=Ninja | |||
|
|||
rapids-print-env | |||
|
|||
package_dir="python" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yesss glad shellcheck
is helping us catch stuff like this!
Co-authored-by: James Lamb <jaylamb20@gmail.com>
/merge |
Description
shellcheck
is a fast, static analysis tool for shell scripts. It's good atflagging up unused variables, unintentional glob expansions, and other potential
execution and security headaches that arise from the wonders of
bash
(andother shlangs).
This PR adds a
pre-commit
hook to runshellcheck
on all of thesh-lang
files in the
ci/
directory, and the changes requested byshellcheck
to makethe existing files pass the check.
xref: rapidsai/build-planning#135
Checklist