ruff
[`pylint`] Detect subclasses of builtin exceptions (`PLW0133`)
#21382
Merged

[`pylint`] Detect subclasses of builtin exceptions (`PLW0133`) #21382

LoicRiegel
LoicRiegel feat: detect custom exceptions in useless_expression_statement
b19f92dd
LoicRiegel update documentation
a300bff3
LoicRiegel test: move test in violation category
2136ed1a
LoicRiegel test: add tests with a custom Exception and custom ValueError
19d67706
LoicRiegel LoicRiegel changed the title improvement: detect custom exception in useless_expression_statement improvement: detect custom exceptions in useless_expression_statement 28 days ago
astral-sh-bot
ntBre
ntBre commented on 2025-11-17
ntBre ntBre added rule
ntBre ntBre added preview
amyreese amyreese changed the title improvement: detect custom exceptions in useless_expression_statement [`pylint`] improve `PLW0133` to detect custom exceptions in useless_expression_statement 22 days ago
LoicRiegel
LoicRiegel add MySubError test cases
274805fc
LoicRiegel add preview comment in docstring
ab145e1a
LoicRiegel check custom errors only in preview mode
9526f469
LoicRiegel test preview rules
069c8b36
LoicRiegel add preview comments inside fixture to indicate which line is preview…
4e72fc27
ntBre
ntBre commented on 2025-12-08
LoicRiegel Revert "add preview comments inside fixture to indicate which line is…
5621df37
LoicRiegel rule documentation
c18f3839
ntBre
ntBre approved these changes on 2025-12-09
ntBre ntBre changed the title [`pylint`] improve `PLW0133` to detect custom exceptions in useless_expression_statement [`pylint`] Detect subclasses of builtin exceptions (`PLW0133`) 19 hours ago
ntBre ntBre merged 9490fbf1 into main 19 hours ago
LoicRiegel LoicRiegel deleted the feat/detect-custom-exception-in-useless_expression_statement branch 6 hours ago

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
No one assigned
Labels
Milestone