mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 16:57:53 +00:00
Consolidate ruff PL and Q rules (#113555)
This commit is contained in:
parent
2f39187628
commit
cede6af496
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user