mirror of
				https://github.com/mfulz/qmk_firmware.git
				synced 2025-10-31 05:12:33 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			379 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			379 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| """Format files according to QMK's style.
 | |
| """
 | |
| from milc import cli
 | |
| 
 | |
| import subprocess
 | |
| 
 | |
| 
 | |
| @cli.subcommand("Format files according to QMK's style.", hidden=True)
 | |
| def fileformat(cli):
 | |
|     """Run several general formatting commands.
 | |
|     """
 | |
|     dos2unix = subprocess.run(['bash', '-c', 'git ls-files -z | xargs -0 dos2unix'], stdout=subprocess.DEVNULL)
 | |
|     return dos2unix.returncode
 | 
