-
Notifications
You must be signed in to change notification settings - Fork 25.4k
[BE] add SHFMT
linter to format shell scripts
#157685
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
base: gh/XuehaiPan/356/base
Are you sure you want to change the base?
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/157685
Note: Links to docs will display an error until the docs builds have been completed. ❌ 7 New Failures, 2 Unrelated FailuresAs of commit cebe69d with merge base 9aedb3c ( NEW FAILURES - The following jobs have failed:
FLAKY - The following job failed but was likely due to flakiness present on trunk:
BROKEN TRUNK - The following job failed but was present on the merge base:👉 Rebase onto the `viable/strict` branch to avoid these failures
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
ghstack-source-id: 8205ece Pull-Request: pytorch#157685
Do we have shellcheck enabled? If not, may be a less intrusive check to start with. |
No. |
ghstack-source-id: e9067f1 Pull-Request: pytorch#157685
I actually do believe we have shellcheck enabled, it's just over a smaller subset of things: Lines 886 to 905 in 86670b3
What's the benefit here of |
Thanks for the clarification.
It's a formatter to standardize the style for shell scripts and prevent potential merge conflicts like FYI, |
ghstack-source-id: e9067f1 Pull-Request: pytorch#157685
ghstack-source-id: 44f28ab Pull-Request: pytorch#157685
ghstack-source-id: 95f930a Pull-Request: pytorch#157685
ghstack-source-id: 7fe0193 Pull-Request: pytorch#157685
ghstack-source-id: 6547e7e Pull-Request: pytorch#157685
ghstack-source-id: ce4d210 Pull-Request: pytorch#157685
Stack from ghstack (oldest at bottom):
SHFMT
in scripts/ #157689SHFMT
in .ci/ #157688SHFMT
in .circleci/ and .github/ #157687SHFMT
#157686SHFMT
linter to format shell scripts #157685cc @jeffdaily @sunway513 @jithunnair-amd @pruthvistony @ROCmSupport @dllehr-amd @jataylo @hongxiayang @naromero77amd @jgong5 @mingfeima @XiaobingSuper @sanchitintel @ashokei @jingxu10 @jerryzh168 @seemethere @malfet @pytorch/pytorch-dev-infra @albanD @voznesenskym @penguinwu @EikanWang @Guobing-Chen @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @chenyang78 @kadeng @chauhang @amjames @ZainRizvi @huydhn @clee2000