Introduce isort to check *.py import ordering.

Review Request #1726 - Created Feb. 6, 2015 and submitted

Information
John Sirois
pants
jsirois/pants/introduce_isort_tools
1049
91c3ce9...
Reviewers
pants-reviews
dturner-tw, mateor, patricklaw, zundel
This change adds build-support/bin/isort.sh and incorporates it in
build-support/bin/ci.sh. By default the script runs in check mode and
exits non-zero if there are one or more files with non-conformant import
order. The script also has a fix mode that will fixup files not in
compliance. This mode was run in this change to normalize the repo.

 .isort.cfg                                                                             | 10 +++++++
 build-support/bin/check_header.sh                                                      |  4 +--
 build-support/bin/ci.sh                                                                |  1 +
 build-support/bin/isort.sh                                                             | 78 ++++++++++++++++++++++++++++++++++++++++++++++++++
 ...
 450 files changed, 1366 insertions(+), 1288 deletions(-)

Used the script to create most of the changes in this review: ./build-support/bin/isort -f

CI went green here: https://travis-ci.org/pantsbuild/pants/builds/49721924

John Sirois
Eric Ayers
Patrick Lawson
John Sirois
John Sirois
Review request changed

Status: Closed (submitted)

Loading...