From 47004eedec4528a0b8350e1f5e41c5ad713b8d2e Mon Sep 17 00:00:00 2001 From: Kien Dang Date: Sat, 5 Aug 2023 14:01:49 +0800 Subject: [PATCH] Add bugbear --- .ruff.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.ruff.toml b/.ruff.toml index 1e6ba88..59d3865 100644 --- a/.ruff.toml +++ b/.ruff.toml @@ -3,11 +3,15 @@ select = [ "W", # pycodestyle "F", # pyflake "I", # isort + "B", # flake8-bugbear "UP", # pyupgrade ] ignore = [ "E501", # line-too-long + "B017", # pytest.raises(Exception) should be considered evil + "B028", # warnings.warn called without an explicit stacklevel keyword argument + "B904", # check for raise statements in exception handlers that lack a from clause ] exclude = [