Consolidate ruff PL and Q rules (#113555)

This commit is contained in:
Sid 2024-03-17 00:45:03 +01:00 committed by GitHub
parent 2f39187628
commit cede6af496
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -605,17 +605,12 @@ select = [
"N815", # Variable {name} in class scope should not be mixedCase
"PERF", # Perflint
"PGH004", # Use specific rule codes when using noqa
"PL", # pylint
"PIE804", # Unnecessary dict kwargs
"PIE790", # Unnecessary pass statement
"PIE794", # Class field is defined multiple times
"PIE807", # Prefer list/dict over useless lambda
"PIE810", # Call startswith/endswith once with a tuple
"PLC0414", # Useless import alias. Import alias does not rename original package.
"PLC", # pylint
"PLE", # pylint
"PLR", # pylint
"PLW", # pylint
"Q000", # Double quotes found but single quotes preferred
"RUF005", # Consider iterable unpacking instead of concatenation
"RUF006", # Store a reference to the return value of asyncio.create_task
# "RUF100", # Unused `noqa` directive; temporarily every now and then to clean them up
@ -682,10 +677,7 @@ ignore = [
"E117",
"D206",
"D300",
"Q000",
"Q001",
"Q002",
"Q003",
"Q",
"COM812",
"COM819",
"ISC001",