chore: apply ruff's pyflakes linter rules (#2420)

This commit is contained in:
Bowen Liang 2024-02-08 14:11:10 +08:00 committed by GitHub
commit 14a19a3da9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
34 changed files with 91 additions and 86 deletions

View file

@ -11,8 +11,13 @@ line-length = 120
[tool.ruff.lint]
ignore-init-module-imports = true
select = [
"F401", # unused-import
"F", # pyflakes rules
"I001", # unsorted-imports
"I002", # missing-required-import
"F811", # redefined-while-unused
]
ignore = [
"F403", # undefined-local-with-import-star
"F405", # undefined-local-with-import-star-usage
"F821", # undefined-name
"F841", # unused-variable
]