diff --git a/pyproject.toml b/pyproject.toml index 2f13321e5ea1e..accc61a78dc33 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -635,6 +635,7 @@ extend-select = [ "B004", # Checks for use of hasattr(x, "__call__") and replaces it with callable(x) "B006", # Checks for uses of mutable objects as function argument defaults. "B007", # Checks for unused variables in the loop + "B012", # Checks for `break`, `continue`, and `return` statements in `finally` blocks "B017", # Checks for pytest.raises context managers that catch Exception or BaseException. "B019", # Use of functools.lru_cache or functools.cache on methods can lead to memory leaks "B028", # No explicit stacklevel keyword argument found