Commit af1a4bd6 by Tom Christie

Merge pull request #3085 from jpadilla/import-cleanup

Print helpful command if isort fails
parents 3e168728 0f1d9217
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment