Skip to content
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

Closed

Conversation

ringohoffman
Copy link
Contributor

@ringohoffman ringohoffman commented May 15, 2024

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 which should be used instead.

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

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."
@pytorch-bot pytorch-bot bot added the topic: not user facing topic category label May 15, 2024
Copy link

pytorch-bot bot commented May 15, 2024

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

As of commit eac6f68 with merge base dccb5cf (image):
💚 Looks good so far! There are no failures yet. 💚

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

pyproject.toml Outdated Show resolved Hide resolved
@Skylion007
Copy link
Collaborator

Pretty sure all the noqas will need to be adjusted too, or the original errors will need to be fixed.

@pytorch-bot pytorch-bot bot added module: cpu CPU specific problem (e.g., perf, algorithm) module: dynamo module: inductor oncall: distributed Add this issue/PR to distributed oncall triage queue labels May 15, 2024
@ringohoffman
Copy link
Contributor Author

@Skylion007 I guess B904 is somehow stricter than TRY200?

Any recommendation on these: https://github.com/pytorch/pytorch/actions/runs/9100510101/job/25019431692#step:11:243

@albanD albanD removed their request for review May 15, 2024 20:36
@Skylion007
Copy link
Collaborator

@pytorchbot merge

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label May 17, 2024
@Skylion007 Skylion007 added better-engineering Relatively self-contained tasks for better engineering contributors and removed ciflow/trunk Trigger trunk jobs on your pull request labels May 17, 2024
@pytorchmergebot
Copy link
Collaborator

Merge started

Your 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

Advanced Debugging
Check the merge workflow status
here

manuelcandales pushed a commit to manuelcandales/pytorch that referenced this pull request May 17, 2024
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
@Skylion007
Copy link
Collaborator

@pytorchbot merge

@Skylion007 Skylion007 closed this May 18, 2024
@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label May 18, 2024
@pytorchmergebot
Copy link
Collaborator

Can't merge closed PR #126256

facebook-github-bot pushed a commit to pytorch/benchmark that referenced this pull request May 19, 2024
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
ZelboK pushed a commit to ZelboK/pytorch that referenced this pull request May 19, 2024
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
better-engineering Relatively self-contained tasks for better engineering contributors ciflow/trunk Trigger trunk jobs on your pull request Merged module: cpu CPU specific problem (e.g., perf, algorithm) module: dynamo module: inductor oncall: distributed Add this issue/PR to distributed oncall triage queue open source topic: not user facing topic category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants