-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
CI - add job for shellcheck #5948
Conversation
Use the `file` utility to find shell scripts in the repository.
check/mypy | ||
check/nbformat | ||
check/pylint | ||
check/pytest |
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.
No action needed: Eventually, we can add shellcheck itself ;-)
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.
It should be already included. :-) This list is to verify the shell scripts search command (ie, git ls-files ... | xargs file | ...
) works as expected. Would be disappointing to have a passing check that checks zero files. :-/
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 understand why you've done it and I think it's a great sanity check. I just meant to say that the sanity check could be self-referential since as you say git ls-files
invoked by shellcheck
should find shellcheck
itself :-)
Automerge cancelled: Failed to update branch (incorrect expected_head_sha). |
- Add check/shellcheck for syntax checking of shell scripts - Add CI job to run shellcheck on our shell scripts Resolves quantumlib#5923.
Resolves #5923.