From 2d20b220ce2e6f8392a5e180acd625089e82a2ca Mon Sep 17 00:00:00 2001 From: Marshall Hallenbeck Date: Thu, 12 Oct 2023 17:14:20 -0400 Subject: [PATCH] ruff: add flake8-bugbear --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 07577d7b..04688a3c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -79,8 +79,8 @@ build-backend = "poetry.core.masonry.api" [tool.ruff] # Ruff doesn't enable pycodestyle warnings (`W`) or # McCabe complexity (`C901`) by default. -# Other options: pep8-naming (N), flake8-annotations (ANN) -select = ["E", "F", "D", "UP", "YTT", "ASYNC"] +# Other options: pep8-naming (N), flake8-annotations (ANN), flake8-blind-except (BLE) +select = ["E", "F", "D", "UP", "YTT", "ASYNC", "B"] ignore = [ "E501", "F405", "F841", "D100", "D101", "D102", "D103", "D104", "D105", "D106", "D107", "D203", "D204", "D205", "D212", "D213", "D400", "D401", "D415", "D417", "D419"] # Allow autofix for all enabled rules (when `--fix`) is provided.