mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 22:53:59 +00:00 
			
		
		
		
	[ruff] Enable SIM rules and fix code simplification violations (#9872)
This commit is contained in:
		| @@ -111,11 +111,12 @@ exclude = ['generated'] | ||||
|  | ||||
| [tool.ruff.lint] | ||||
| select = [ | ||||
|   "E", # pycodestyle | ||||
|   "F", # pyflakes/autoflake | ||||
|   "I", # isort | ||||
|   "PL", # pylint | ||||
|   "UP", # pyupgrade | ||||
|   "E",   # pycodestyle | ||||
|   "F",   # pyflakes/autoflake | ||||
|   "I",   # isort | ||||
|   "PL",  # pylint | ||||
|   "SIM", # flake8-simplify | ||||
|   "UP",  # pyupgrade | ||||
| ] | ||||
|  | ||||
| ignore = [ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user