-
Notifications
You must be signed in to change notification settings - Fork 26.4k
Apply various ruff fixes #170968
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
Apply various ruff fixes #170968
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/170968
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 84465ab with merge base 3dc8009 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
f7e1883 to
76fd7c7
Compare
Signed-off-by: Yuanyuan Chen <cyyever@outlook.com>
76fd7c7 to
84465ab
Compare
|
Can we update the summary to list which fixes? I think it is fine for the title to be general but we should be sure to include details when we have the space (summary) |
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.
Generally LGTM - please update summary to include which fixes before landing
|
@pytorchbot merge -i |
Merge startedYour change will be merged while ignoring the following 0 checks: Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
This PR applies various ruff experimental fixes to code. Most changes are about simplifying
ifconditions. These fixes were applied withruff --previewbut my view indicates that they are safe.cc @ezyang @EikanWang @jgong5 @wenzhe-nrv @voznesenskym @penguinwu @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @jiayisunx @ipiszy @kadeng @muchulee8 @amjames @chauhang @aakhundov @coconutruben @jataylo @Lucaskabela