mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-16 06:16:53 +08:00
chore: apply and fix flake8-bugbear lint rules (#4496)
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user