From 51d7e824336df04fbc3e569e34d68bab09831baa Mon Sep 17 00:00:00 2001 From: Mark Baas Date: Thu, 19 Nov 2015 22:25:22 -0400 Subject: [PATCH] added example --- .travis.yml | 1 + examples/nested-jsbeautifyrc/.jsbeautifyrc | 3 ++- examples/nested-jsbeautifyrc/python/expected/test_isort.py | 5 +++++ examples/nested-jsbeautifyrc/python/original/test_isort.py | 4 ++++ 4 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 examples/nested-jsbeautifyrc/python/expected/test_isort.py create mode 100644 examples/nested-jsbeautifyrc/python/original/test_isort.py 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