mirror of https://github.com/interlegis/sapl.git
				
				
			
			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.
		
		
		
		
		
			
		
			
				
					
					
						
							21 lines
						
					
					
						
							751 B
						
					
					
				
			
		
		
		
			
			
			
		
		
	
	
							21 lines
						
					
					
						
							751 B
						
					
					
				| #!/usr/bin/env bash | |
|  | |
| # Verifica se um breakpoint foi esquecido no código | |
| me=`basename "$0"` | |
| 
 | |
| git_project_root=$(git rev-parse --show-toplevel) | |
| cd ${git_project_root} | |
| 
 | |
| busca=`grep --color=auto --exclude=$me --exclude=ipython_log.py* -r -l "pdb.set_trace()" .` | |
| 
 | |
| if [ ! -z "$busca" ] | |
| then | |
|     echo "============================================================================" | |
|     echo "ERROR: pdb.set_trace() encontrado nos seguintes arquivos. Remova, por favor." | |
|     echo "$busca" | |
|     echo "============================================================================" | |
| fi | |
| 
 | |
| # ./manage.py check | |
| # flake8 --exclude='ipython_log.py*,migrations,templates' . | |
| # isort --recursive --check-only --skip='migrations' --skip='templates' --skip='ipython_log.py' .
 | |
| 
 |