mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 07:07:28 +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
|
"N815", # Variable {name} in class scope should not be mixedCase
|
||||||
"PERF", # Perflint
|
"PERF", # Perflint
|
||||||
"PGH004", # Use specific rule codes when using noqa
|
"PGH004", # Use specific rule codes when using noqa
|
||||||
|
"PL", # pylint
|
||||||
"PIE804", # Unnecessary dict kwargs
|
"PIE804", # Unnecessary dict kwargs
|
||||||
"PIE790", # Unnecessary pass statement
|
"PIE790", # Unnecessary pass statement
|
||||||
"PIE794", # Class field is defined multiple times
|
"PIE794", # Class field is defined multiple times
|
||||||
"PIE807", # Prefer list/dict over useless lambda
|
"PIE807", # Prefer list/dict over useless lambda
|
||||||
"PIE810", # Call startswith/endswith once with a tuple
|
"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
|
"RUF005", # Consider iterable unpacking instead of concatenation
|
||||||
"RUF006", # Store a reference to the return value of asyncio.create_task
|
"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
|
# "RUF100", # Unused `noqa` directive; temporarily every now and then to clean them up
|
||||||
@ -682,10 +677,7 @@ ignore = [
|
|||||||
"E117",
|
"E117",
|
||||||
"D206",
|
"D206",
|
||||||
"D300",
|
"D300",
|
||||||
"Q000",
|
"Q",
|
||||||
"Q001",
|
|
||||||
"Q002",
|
|
||||||
"Q003",
|
|
||||||
"COM812",
|
"COM812",
|
||||||
"COM819",
|
"COM819",
|
||||||
"ISC001",
|
"ISC001",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user