-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
Remove removed ruff rule TRY200 #126256
Remove removed ruff rule TRY200 #126256
Conversation
From the docs: https://docs.astral.sh/ruff/rules/reraise-no-cause/ "This rule has been removed and its documentation is only available for historical reasons."
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/126256
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit eac6f68 with merge base dccb5cf (): This comment was automatically generated by Dr. CI and updates every 15 minutes. |
Pretty sure all the noqas will need to be adjusted too, or the original errors will need to be fixed. |
@Skylion007 I guess Any recommendation on these: https://github.com/pytorch/pytorch/actions/runs/9100510101/job/25019431692#step:11:243 |
@pytorchbot merge |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
My TOML linter is complaining that "TRY200" is not acceptable for the `tool.ruff.lint` schema. From the ruff docs: https://docs.astral.sh/ruff/rules/reraise-no-cause/ > This rule has been removed and its documentation is only available for historical reasons. > > This rule is identical to [B904](https://docs.astral.sh/ruff/rules/raise-without-from-inside-except/) which should be used instead. and we are currently explicitly ignoring B904. Pull Request resolved: pytorch#126256 Approved by: https://github.com/Skylion007
@pytorchbot merge |
Can't merge closed PR #126256 |
Summary: My TOML linter is complaining that "TRY200" is not acceptable for the `tool.ruff.lint` schema. From the ruff docs: https://docs.astral.sh/ruff/rules/reraise-no-cause/ > This rule has been removed and its documentation is only available for historical reasons. > > This rule is identical to [B904](https://docs.astral.sh/ruff/rules/raise-without-from-inside-except/) which should be used instead. and we are currently explicitly ignoring B904. X-link: pytorch/pytorch#126256 Approved by: https://github.com/Skylion007 Reviewed By: huydhn Differential Revision: D57518709 fbshipit-source-id: f2885bbb17309a5cd71f0ad7da7533c62e2e6fe7
My TOML linter is complaining that "TRY200" is not acceptable for the `tool.ruff.lint` schema. From the ruff docs: https://docs.astral.sh/ruff/rules/reraise-no-cause/ > This rule has been removed and its documentation is only available for historical reasons. > > This rule is identical to [B904](https://docs.astral.sh/ruff/rules/raise-without-from-inside-except/) which should be used instead. and we are currently explicitly ignoring B904. Pull Request resolved: pytorch#126256 Approved by: https://github.com/Skylion007
My TOML linter is complaining that "TRY200" is not acceptable for the
tool.ruff.lint
schema.From the ruff docs: https://docs.astral.sh/ruff/rules/reraise-no-cause/
and we are currently explicitly ignoring B904.
cc @mrshenli @pritamdamania87 @zhaojuanmao @satgera @gqchen @aazzolini @osalpekar @jiayisuse @H-Huang @kwen2501 @awgu @penguinwu @fegin @XilunWu @wanchaol @fduwjj @wz337 @tianyu-l @wconstab @yf225 @chauhang @d4l3k @jgong5 @mingfeima @XiaobingSuper @sanchitintel @ashokei @jingxu10 @voznesenskym @EikanWang @Guobing-Chen @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @peterbell10 @ipiszy @chenyang78 @kadeng @muchulee8 @ColinPeppler @amjames @desertfire