From 11ccc42fa81f2261694369fd037e3426a4e95961 Mon Sep 17 00:00:00 2001 From: Pior Bastida Date: Thu, 8 Feb 2018 10:58:28 -0500 Subject: [PATCH 1/3] Also run tests in Python 3.6 --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index f211d64..83c2eef 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,6 +6,7 @@ python: - "3.3" - "3.4" - "3.5" + - "3.6" before_install: - pip install -U pip setuptools install: From c2f66ac70e9e08887854f729a3f665aed7e57154 Mon Sep 17 00:00:00 2001 From: Pior Bastida Date: Thu, 8 Feb 2018 11:11:12 -0500 Subject: [PATCH 2/3] Fix the crash on Autopep8 missing the hang_closing attribute --- setup.py | 2 +- shopify_python/git_utils.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index af77e02..cb228fa 100755 --- a/setup.py +++ b/setup.py @@ -44,7 +44,7 @@ def get_version(): 'astroid>=1.5,<1.6', 'six>=1.10.0,<2', 'typing>=3.5.3.0,<4', - 'autopep8>=1.2.2,<2', + 'autopep8>=1.3.4,<2', ], extras_require={ 'dev': [ diff --git a/shopify_python/git_utils.py b/shopify_python/git_utils.py index 0f8ebe0..268039f 100644 --- a/shopify_python/git_utils.py +++ b/shopify_python/git_utils.py @@ -78,6 +78,7 @@ def changed_python_files_in_tree(root_path): ('recursive', bool), ('select', typing.Set[str]), ('verbose', int), + ('hang_closing', bool), ]) @@ -100,7 +101,8 @@ def autopep_files(files, max_line_length): pep8_passes=-1, recursive=False, select={'W', 'E'}, - verbose=0) + verbose=0, + hang_closing=False) autopep8.fix_multiple_files(files, options, sys.stdout) From 5710b0a1ce92d84308f446a78d54abaebef9df0c Mon Sep 17 00:00:00 2001 From: Pior Bastida Date: Thu, 8 Feb 2018 11:14:59 -0500 Subject: [PATCH 3/3] Stop testing on deprecated Py3.3 (isort requires > 3.3) --- .travis.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 83c2eef..ec0b553 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,7 +3,6 @@ language: python python: - "2.7" - - "3.3" - "3.4" - "3.5" - "3.6"