🔧 启用一些 ruff 规则

This commit is contained in:
2024-08-12 16:10:14 +08:00
parent 5c2ffe13b0
commit 197b81f9cf

View File

@@ -88,10 +88,12 @@ select = [
'ICN', # flake8-import-conventions
'PIE', # flake8-pie
'T20', # flake8-print
'PYI', # flake8-pyi
'Q', # flake8-quotes
'RSE', # flake8-raise
'RET', # flake8-return
'SLF', # flake8-self
'SLOT', # flake8-slots
'SIM', # flake8-simplify
'TID', # flake8-tidy-imports
'TCH', # flake8-type-checking
@@ -103,6 +105,7 @@ select = [
'PL', # pylint
'TRY', # tryceratops
'FLY', # flynt
'FAST', # FastAPI
'PERF', # Perflint
'FURB', # refurb
'RUF', # Ruff-specific rules