mirror of
				https://github.com/encode/django-rest-framework.git
				synced 2025-11-04 01:47:59 +03:00 
			
		
		
		
	Merge pull request #3085 from jpadilla/import-cleanup
Print helpful command if isort fails
This commit is contained in:
		
						commit
						af1a4bd683
					
				| 
						 | 
				
			
			@ -34,7 +34,12 @@ def flake8_main(args):
 | 
			
		|||
def isort_main(args):
 | 
			
		||||
    print('Running isort code checking')
 | 
			
		||||
    ret = subprocess.call(['isort'] + args)
 | 
			
		||||
    print('isort failed' if ret else 'isort passed')
 | 
			
		||||
 | 
			
		||||
    if ret:
 | 
			
		||||
        print('isort failed: Fix by running `isort --recursive .`')
 | 
			
		||||
    else:
 | 
			
		||||
        print('isort passed')
 | 
			
		||||
 | 
			
		||||
    return ret
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user