You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
			
				
					16 lines
				
				432 B
			
		
		
			
		
	
	
					16 lines
				
				432 B
			| 
								 
											6 years ago
										 
									 | 
							
								#!/usr/bin/env bash
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								git stash -q --keep-index
							 | 
						||
| 
								 | 
							
								$(git rev-parse --show-toplevel)/flake8_openpilot.sh
							 | 
						||
| 
								 | 
							
								RESULT=$?
							 | 
						||
| 
								 | 
							
								if [ $RESULT -eq 0 ]; then
							 | 
						||
| 
								 | 
							
								    IGNORE_REGEXP=$(echo -n "^(?!"; echo $(cat release/files_common release/files_common | tr '\n' ' ') | tr ' ' '\n' | grep "py$" | tr '\n' '|' | sed s'/|$//'; echo ").*")
							 | 
						||
| 
								 | 
							
								    git-pylint-commit-hook --ignore $IGNORE_REGEXP
							 | 
						||
| 
								 | 
							
								    RESULT=$?
							 | 
						||
| 
								 | 
							
								fi
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								git stash pop -q
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								[ $RESULT -ne 0 ] && exit 1
							 | 
						||
| 
								 | 
							
								exit 0
							 |