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