Skip to content

Commit 47004ee

Browse files
committed
Add bugbear
1 parent 8a216b3 commit 47004ee

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.ruff.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,15 @@ select = [
33
"W", # pycodestyle
44
"F", # pyflake
55
"I", # isort
6+
"B", # flake8-bugbear
67
"UP", # pyupgrade
78
]
89

910
ignore = [
1011
"E501", # line-too-long
12+
"B017", # pytest.raises(Exception) should be considered evil
13+
"B028", # warnings.warn called without an explicit stacklevel keyword argument
14+
"B904", # check for raise statements in exception handlers that lack a from clause
1115
]
1216

1317
exclude = [

0 commit comments

Comments
 (0)