ruff
8e0a70cf - [`pylint`] Implement `useless-exception-statement` (`W0133`) (#10176)

Commit
1 year ago
[`pylint`] Implement `useless-exception-statement` (`W0133`) (#10176) ## Summary This review contains a new rule for handling `useless exception statements` (`PLW0133`). Is it based on the following pylint's rule: [W0133](https://pylint.readthedocs.io/en/latest/user_guide/messages/warning/pointless-exception-statement.html) Note: this rule does not cover the case if an error is a custom exception class. See: [Rule request](https://github.com/astral-sh/ruff/issues/10145) ## Test Plan ```bash cargo test & manually ```
Author
Parents
Loading