Skip to content

Commit 1b7a927

Browse files
committed
- r Unnecessary parentheses on raised exception
1 parent 1a065c4 commit 1b7a927

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

ruff.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ ignore = [
1818
"COM812", # Trailing comma missing
1919
"FURB188", # Prefer `str.removeprefix()` over conditionally replacing with slice.
2020
"RET505", # Unnecessary `...` after `return` statement
21-
"RSE102", # Unnecessary parentheses on raised exception
2221
"RUF010", # Use explicit conversion flag
2322
"SIM114", # Combine `if` branches using logical `or` operator
2423
"SIM118", # Use `key not in dict` instead of `key not in dict.keys()`

tests/reporters/test_first_working_reporter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def test_second_one(self) -> None:
5656

5757
def test_exception(self) -> None:
5858
def exception() -> None:
59-
raise Exception()
59+
raise Exception
6060

6161
r1 = ReporterForTesting(False, exception)
6262
r2 = ReporterForTesting(False)

0 commit comments

Comments
 (0)