diff --git a/.travis.yml b/.travis.yml index 091ec6a..578e41c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -41,6 +41,7 @@ before_install: # Python language support - brew install python - pip install --upgrade autopep8 + - pip install --upgrade isort # SQL language support - pip install --upgrade sqlparse # Java, C, C++, C#, Objective-C, D, Pawn, Vala diff --git a/examples/nested-jsbeautifyrc/.jsbeautifyrc b/examples/nested-jsbeautifyrc/.jsbeautifyrc index 6457b98..e2da501 100644 --- a/examples/nested-jsbeautifyrc/.jsbeautifyrc +++ b/examples/nested-jsbeautifyrc/.jsbeautifyrc @@ -33,6 +33,7 @@ indent_with_tabs: false python: indent_size: 2 + sort_imports: true #max_line_length: 79 #ignore: # - "E24" @@ -43,4 +44,4 @@ ruby: indent_size: 4 erb: - indent_size: 4 \ No newline at end of file + indent_size: 4 diff --git a/examples/nested-jsbeautifyrc/python/expected/test_isort.py b/examples/nested-jsbeautifyrc/python/expected/test_isort.py new file mode 100644 index 0000000..fc42915 --- /dev/null +++ b/examples/nested-jsbeautifyrc/python/expected/test_isort.py @@ -0,0 +1,5 @@ +import os +import sys +from pprint import pprint + +from scrapy import FormRequest, Request diff --git a/examples/nested-jsbeautifyrc/python/original/test_isort.py b/examples/nested-jsbeautifyrc/python/original/test_isort.py new file mode 100644 index 0000000..0fcfb61 --- /dev/null +++ b/examples/nested-jsbeautifyrc/python/original/test_isort.py @@ -0,0 +1,4 @@ +from scrapy import Request, FormRequest +import sys +import os +from pprint import pprint