Replace flake8-bugbear with Ruff (#11500)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
Avasam
2024-02-29 13:20:31 -05:00
committed by GitHub
parent 791dc9120a
commit 5cb2fe97a6
7 changed files with 15 additions and 10 deletions

View File

@@ -25,6 +25,7 @@ exclude = [
[tool.ruff.lint]
select = [
"B", # flake8-bugbear
"FA", # flake8-future-annotations
"I", # isort
# Only enable rules that have safe autofixes:
@@ -49,6 +50,13 @@ select = [
"UP039", # don't use parens after a class definition with no bases
]
[tool.ruff.lint.per-file-ignores]
"*.pyi" = [
# Most flake8-bugbear rules don't apply for third-party stubs like typeshed,
# B033 could be slightly useful but Ruff doesn't have per-file select
"B", # flake8-bugbear
]
[tool.ruff.lint.isort]
split-on-trailing-comma = false
combine-as-imports = true