Skip to content

Commit

Permalink
Repair isort-check failure in master. (#465)
Browse files Browse the repository at this point in the history
[omerta pex2 (master)]$ tox -e isort-check
GLOB sdist-make: /Users/kwilson/dev/pex2/setup.py
isort-check create: /Users/kwilson/dev/pex2/.tox/isort-check
isort-check installdeps: isort
isort-check inst: /Users/kwilson/dev/pex2/.tox/dist/pex-1.3.2.zip
isort-check installed: futures==3.2.0,isort==4.3.4,pex==1.3.2
isort-check runtests: PYTHONHASHSEED='1082216549'
isort-check runtests: commands[0] | isort -ns __init__.py -rc -c /Users/kwilson/dev/pex2/pex /Users/kwilson/dev/pex2/tests
ERROR: /Users/kwilson/dev/pex2/pex/link.py Imports are incorrectly sorted.
ERROR: /Users/kwilson/dev/pex2/pex/pex_builder.py Imports are incorrectly sorted.
ERROR: /Users/kwilson/dev/pex2/pex/compiler.py Imports are incorrectly sorted.
ERROR: /Users/kwilson/dev/pex2/pex/pex_info.py Imports are incorrectly sorted.
ERROR: /Users/kwilson/dev/pex2/pex/resolvable.py Imports are incorrectly sorted.
ERROR: /Users/kwilson/dev/pex2/tests/test_pex_builder.py Imports are incorrectly sorted.
ERROR: /Users/kwilson/dev/pex2/tests/test_finders.py Imports are incorrectly sorted.
ERROR: InvocationError: '/Users/kwilson/dev/pex2/.tox/isort-check/bin/isort -ns __init__.py -rc -c /Users/kwilson/dev/pex2/pex /Users/kwilson/dev/pex2/tests'
_______________________________________________________________ summary ________________________________________________________________
ERROR:   isort-check: commands failed
[omerta pex2 (kwlzn/isort_repair)]$ tox -e isort-run
GLOB sdist-make: /Users/kwilson/dev/pex2/setup.py
isort-run create: /Users/kwilson/dev/pex2/.tox/isort-run
isort-run installdeps: isort
isort-run inst: /Users/kwilson/dev/pex2/.tox/dist/pex-1.3.2.zip
isort-run installed: futures==3.2.0,isort==4.3.4,pex==1.3.2
isort-run runtests: PYTHONHASHSEED='3102512657'
isort-run runtests: commands[0] | isort -ns __init__.py -rc /Users/kwilson/dev/pex2/pex /Users/kwilson/dev/pex2/tests
Fixing /Users/kwilson/dev/pex2/pex/link.py
Fixing /Users/kwilson/dev/pex2/pex/pex_builder.py
Fixing /Users/kwilson/dev/pex2/pex/compiler.py
Fixing /Users/kwilson/dev/pex2/pex/pex_info.py
Fixing /Users/kwilson/dev/pex2/pex/resolvable.py
Fixing /Users/kwilson/dev/pex2/tests/test_pex_builder.py
Fixing /Users/kwilson/dev/pex2/tests/test_finders.py
Skipped 3 files
_______________________________________________________________ summary ________________________________________________________________
  isort-run: commands succeeded
  congratulations :)
  • Loading branch information
kwlzn authored May 11, 2018
1 parent ca2a8c4 commit 54ea55f
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 8 deletions.
1 change: 0 additions & 1 deletion pex/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from .executor import Executor
from .util import named_temporary_file


_COMPILER_MAIN = """
from __future__ import print_function
Expand Down
3 changes: 2 additions & 1 deletion pex/link.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
import posixpath
from collections import Iterable

from .compatibility import PY3, WINDOWS, pathname2url
from .compatibility import string as compatible_string
from .compatibility import PY3, WINDOWS, pathname2url, url2pathname
from .compatibility import url2pathname
from .util import Memoizer

if PY3:
Expand Down
1 change: 0 additions & 1 deletion pex/pex_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
from .pex_info import PexInfo
from .util import CacheHelper, DistributionHelper


BOOTSTRAP_ENVIRONMENT = b"""
import os
import sys
Expand Down
2 changes: 1 addition & 1 deletion pex/pex_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
from collections import namedtuple

from .common import open_zip
from .compatibility import string as compatibility_string
from .compatibility import PY2
from .compatibility import string as compatibility_string
from .orderedset import OrderedSet
from .util import merge_split
from .variables import ENV
Expand Down
2 changes: 1 addition & 1 deletion pex/resolvable.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
from pkg_resources import Requirement, safe_extra

from .base import maybe_requirement, requirement_is_exact
from .compatibility import string as compatibility_string
from .compatibility import AbstractClass
from .compatibility import string as compatibility_string
from .installer import InstallerBase, Packager
from .package import Package
from .resolver_options import ResolverOptionsBuilder, ResolverOptionsInterface
Expand Down
3 changes: 2 additions & 1 deletion tests/test_finders.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@

import pkg_resources

from pex.finders import ChainedFinder
from pex.finders import _add_finder as add_finder
from pex.finders import _remove_finder as remove_finder
from pex.finders import ChainedFinder, find_eggs_in_zip, get_script_from_egg
from pex.finders import find_eggs_in_zip, get_script_from_egg

try:
import mock
Expand Down
3 changes: 1 addition & 2 deletions tests/test_pex_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@
from pex.compatibility import WINDOWS, nested
from pex.pex import PEX
from pex.pex_builder import PEXBuilder
from pex.testing import write_simple_pex as write_pex
from pex.testing import make_bdist
from pex.testing import write_simple_pex as write_pex
from pex.util import DistributionHelper


exe_main = """
import sys
from my_package.my_module import do_something
Expand Down

0 comments on commit 54ea55f

Please sign in to comment.