[pylint] Disable the only 'misplaced-bare-raise'

This commit is contained in:
Pierre Sassoulas 2024-05-27 23:12:29 +02:00
parent c45afde35d
commit 0d33cdf02a
2 changed files with 2 additions and 3 deletions

View File

@ -211,10 +211,9 @@ disable = [
"keyword-arg-before-vararg",
"line-too-long",
"method-hidden",
"misplaced-bare-raise",
"missing-docstring",
"missing-timeout",
"multiple-statements",
"multiple-statements", # multiple-statements-on-one-line-colon (E701) from ruff
"no-else-break",
"no-else-continue",
"no-else-raise",

View File

@ -401,7 +401,7 @@ class LogCaptureHandler(logging_StreamHandler):
# The default behavior of logging is to print "Logging error"
# to stderr with the call stack and some extra details.
# pytest wants to make such mistakes visible during testing.
raise
raise # pylint: disable=misplaced-bare-raise
@final