Skip to content

Commit 375e748

Browse files
[lint] Handle misplaced-bare-raise with ruff instead of pylint
1 parent 3a6abcc commit 375e748

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ disable = [
221221
"method-hidden",
222222
"missing-docstring",
223223
"missing-timeout",
224+
"misplaced-bare-raise", # PLE0704 from ruff
224225
"multiple-statements", # multiple-statements-on-one-line-colon (E701) from ruff
225226
"no-else-break",
226227
"no-else-continue",

src/_pytest/logging.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ def handleError(self, record: logging.LogRecord) -> None:
399399
# The default behavior of logging is to print "Logging error"
400400
# to stderr with the call stack and some extra details.
401401
# pytest wants to make such mistakes visible during testing.
402-
raise # pylint: disable=misplaced-bare-raise
402+
raise # noqa: PLE0704
403403

404404

405405
@final

0 commit comments

Comments
 (0)