chore: apply and fix flake8-bugbear lint rules (#4496)
This commit is contained in:
parent
5f4df34829
commit
e8e213ad1e
4 changed files with 9 additions and 6 deletions
|
|
@ -9,9 +9,9 @@ line-length = 120
|
|||
[tool.ruff.lint]
|
||||
ignore-init-module-imports = true
|
||||
select = [
|
||||
"B", # flake8-bugbear rules
|
||||
"F", # pyflakes rules
|
||||
"I001", # unsorted-imports
|
||||
"I002", # missing-required-import
|
||||
"I", # isort rules
|
||||
"UP", # pyupgrade rules
|
||||
"RUF019", # unnecessary-key-check
|
||||
]
|
||||
|
|
@ -22,6 +22,12 @@ ignore = [
|
|||
"F841", # unused-variable
|
||||
"UP007", # non-pep604-annotation
|
||||
"UP032", # f-string
|
||||
"B005", # strip-with-multi-characters
|
||||
"B006", # mutable-argument-default
|
||||
"B007", # unused-loop-control-variable
|
||||
"B026", # star-arg-unpacking-after-keyword-arg
|
||||
"B904", # raise-without-from-inside-except
|
||||
"B905", # zip-without-explicit-strict
|
||||
]
|
||||
|
||||
[tool.ruff.lint.per-file-ignores]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue