From 0f1d9217f03c263ea9e29c0b1c5c1b846be793a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Padilla?= Date: Sat, 27 Jun 2015 16:06:53 -0400 Subject: [PATCH] Print helpful command if isort fails --- runtests.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/runtests.py b/runtests.py index 777f996a1..491d1cc5a 100755 --- a/runtests.py +++ b/runtests.py @@ -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