Add diff logic to python format subcommand (#15156)
* Add diff logic to python format subcommand * Update test * Add in filter per format-c * fix tests * Update new workflow
This commit is contained in:
		
							parent
							
								
									b5d24f9efb
								
							
						
					
					
						commit
						cd50fdf7ee
					
				
					 4 changed files with 58 additions and 16 deletions
				
			
		
							
								
								
									
										2
									
								
								.github/workflows/format.yaml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/format.yaml
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -37,7 +37,7 @@ jobs:
 | 
			
		|||
      shell: 'bash {0}'
 | 
			
		||||
      run: |
 | 
			
		||||
        qmk format-c --core-only $(< ~/files.txt)
 | 
			
		||||
        qmk format-python
 | 
			
		||||
        qmk format-python $(< ~/files.txt)
 | 
			
		||||
        qmk format-text $(< ~/files.txt)
 | 
			
		||||
        git diff
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										2
									
								
								.github/workflows/format_push.yaml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/format_push.yaml
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -25,7 +25,7 @@ jobs:
 | 
			
		|||
      shell: 'bash {0}'
 | 
			
		||||
      run: |
 | 
			
		||||
        qmk format-c -a
 | 
			
		||||
        qmk format-python
 | 
			
		||||
        qmk format-python -a
 | 
			
		||||
        qmk format-text -a
 | 
			
		||||
        git diff
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue