6 lines
		
	
	
	
		
			193 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			6 lines
		
	
	
	
		
			193 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
| #!/bin/sh
 | |
| #
 | |
| # Git hook script to verify what is about to be committed.
 | |
| # Checks that the changes don't introduce new flake8 errors.
 | |
| 
 | |
| git diff --unified=1 --cached HEAD -- '*py' | flake8 --diff
 | 
