Skip to content

Conversation

@cyyever
Copy link
Collaborator

@cyyever cyyever commented Dec 21, 2025

This PR applies various ruff experimental fixes to code. Most changes are about simplifying if conditions. These fixes were applied with ruff --preview but 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

@pytorch-bot
Copy link

pytorch-bot bot commented Dec 21, 2025

🔗 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 Failures

As of commit 84465ab with merge base 3dc8009 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

Signed-off-by: Yuanyuan Chen <cyyever@outlook.com>
@Lucaskabela
Copy link
Contributor

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)

Copy link
Contributor

@Lucaskabela Lucaskabela left a 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

@cyyever
Copy link
Collaborator Author

cyyever commented Dec 23, 2025

@pytorchbot merge -i

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Dec 23, 2025
@pytorchmergebot
Copy link
Collaborator

Merge started

Your 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

Advanced Debugging
Check the merge workflow status
here

@cyyever cyyever deleted the math_constant branch December 24, 2025 03:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants