mirror of
				https://github.com/esphome/esphome.git
				synced 2025-11-04 00:51:49 +00:00 
			
		
		
		
	Ensure new const file stays in order (#8642)
This commit is contained in:
		@@ -318,7 +318,12 @@ def lint_no_long_delays(fname, match):
 | 
				
			|||||||
    )
 | 
					    )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@lint_content_check(include=["esphome/const.py"])
 | 
					@lint_content_check(
 | 
				
			||||||
 | 
					    include=[
 | 
				
			||||||
 | 
					        "esphome/const.py",
 | 
				
			||||||
 | 
					        "esphome/components/const/__init__.py",
 | 
				
			||||||
 | 
					    ]
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
def lint_const_ordered(fname, content):
 | 
					def lint_const_ordered(fname, content):
 | 
				
			||||||
    """Lint that value in const.py are ordered.
 | 
					    """Lint that value in const.py are ordered.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user