Commit 0f1d9217 by José Padilla

Print helpful command if isort fails

parent 3e168728
......@@ -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