Skip to content

Commit

Permalink
Apply isort
Browse files Browse the repository at this point in the history
  • Loading branch information
thombashi committed Mar 21, 2018
1 parent 8b45a0a commit ff9c961
Show file tree
Hide file tree
Showing 52 changed files with 77 additions and 219 deletions.
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import os
import sys

import pkg_resources

import sphinx_rtd_theme
Expand Down
1 change: 1 addition & 0 deletions docs/make_readme.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import sys

from path import Path

import readmemaker


Expand Down
21 changes: 4 additions & 17 deletions docs/make_result_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,31 +8,18 @@
from __future__ import unicode_literals

import argparse
from datetime import datetime
import io
import ipaddress
import os
import sys
from datetime import datetime

import logbook
import pytablewriter as ptw
import six
import typepy
from typepy.type import (
Bool,
DateTime,
Dictionary,
Infinity,
Integer,
IpAddress,
List,
Nan,
NoneType,
RealNumber,
String,
NullString,
)

import pytablewriter as ptw
from typepy.type import (Bool, DateTime, Dictionary, Infinity, Integer, IpAddress, List, Nan,
NoneType, NullString, RealNumber, String)


logbook.StderrHandler(
Expand Down
7 changes: 2 additions & 5 deletions test/checker/test_checker_bool.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,11 @@
"""

from __future__ import unicode_literals

import itertools

import pytest

from typepy import (
Typecode,
StrictLevel,
)
from typepy import StrictLevel, Typecode
from typepy.type import Bool


Expand Down
9 changes: 3 additions & 6 deletions test/checker/test_checker_datetime.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,13 @@

from __future__ import unicode_literals

from datetime import datetime
import itertools
from datetime import datetime

from dateutil.tz import tzoffset
import pytest
import six
from typepy import (
Typecode,
StrictLevel,
)
from dateutil.tz import tzoffset
from typepy import StrictLevel, Typecode
from typepy.type import DateTime


Expand Down
7 changes: 2 additions & 5 deletions test/checker/test_checker_dictionary.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,11 @@

from __future__ import unicode_literals

from collections import OrderedDict
import itertools
from collections import OrderedDict

import pytest
from typepy import (
Typecode,
StrictLevel,
)
from typepy import StrictLevel, Typecode
from typepy.type import Dictionary


Expand Down
8 changes: 2 additions & 6 deletions test/checker/test_checker_infinite.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,12 @@

from __future__ import unicode_literals

from decimal import Decimal
import itertools
from decimal import Decimal

import pytest
import six

from typepy import (
Typecode,
StrictLevel,
)
from typepy import StrictLevel, Typecode
from typepy.type import Infinity


Expand Down
7 changes: 2 additions & 5 deletions test/checker/test_checker_integer.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,12 @@

from __future__ import unicode_literals

from decimal import Decimal
import itertools
from decimal import Decimal

import pytest
import six
from typepy import (
Typecode,
StrictLevel,
)
from typepy import StrictLevel, Typecode
from typepy.type import Integer


Expand Down
7 changes: 2 additions & 5 deletions test/checker/test_checker_ipaddress.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,12 @@

from __future__ import unicode_literals

from ipaddress import ip_address
import itertools
from ipaddress import ip_address

import pytest
import six
from typepy import (
Typecode,
StrictLevel,
)
from typepy import StrictLevel, Typecode
from typepy.type import IpAddress


Expand Down
5 changes: 1 addition & 4 deletions test/checker/test_checker_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@
import itertools

import pytest
from typepy import (
Typecode,
StrictLevel,
)
from typepy import StrictLevel, Typecode
from typepy.type import List


Expand Down
8 changes: 2 additions & 6 deletions test/checker/test_checker_nan.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,12 @@

from __future__ import unicode_literals

from decimal import Decimal
import itertools
from decimal import Decimal

import pytest
import six

from typepy import (
Typecode,
StrictLevel,
)
from typepy import StrictLevel, Typecode
from typepy.type import Nan


Expand Down
5 changes: 1 addition & 4 deletions test/checker/test_checker_none.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@

import pytest
import six
from typepy import (
Typecode,
StrictLevel,
)
from typepy import StrictLevel, Typecode
from typepy.type import NoneType


Expand Down
8 changes: 2 additions & 6 deletions test/checker/test_checker_realnumber.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,12 @@

from __future__ import unicode_literals

from decimal import Decimal
import itertools
from decimal import Decimal

import pytest
import six

from typepy import (
Typecode,
StrictLevel,
)
from typepy import StrictLevel, Typecode
from typepy.type import RealNumber


Expand Down
10 changes: 2 additions & 8 deletions test/checker/test_checker_string.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,8 @@

import pytest
import six
from typepy import (
Typecode,
StrictLevel,
)
from typepy.type import (
String,
NullString,
)
from typepy import StrictLevel, Typecode
from typepy.type import NullString, String


nan = float("nan")
Expand Down
3 changes: 1 addition & 2 deletions test/converter/_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
.. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com>
"""

from __future__ import absolute_import
from __future__ import unicode_literals
from __future__ import absolute_import, unicode_literals

import typepy

Expand Down
3 changes: 1 addition & 2 deletions test/converter/test_bool.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
.. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com>
"""

from __future__ import absolute_import
from __future__ import unicode_literals
from __future__ import absolute_import, unicode_literals

import pytest
import typepy
Expand Down
3 changes: 1 addition & 2 deletions test/converter/test_integer.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
.. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com>
"""

from __future__ import absolute_import
from __future__ import unicode_literals
from __future__ import absolute_import, unicode_literals

import pytest
import typepy
Expand Down
8 changes: 2 additions & 6 deletions test/converter/test_realnumber.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,14 @@
.. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com>
"""

from __future__ import absolute_import
from __future__ import unicode_literals
from __future__ import absolute_import, unicode_literals

from decimal import Decimal

import pytest
import typepy

from ._common import (
EXCEPTION_RESULT,
convert_wrapper,
)
from ._common import EXCEPTION_RESULT, convert_wrapper


nan = float("nan")
Expand Down
8 changes: 2 additions & 6 deletions test/converter/test_string.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,12 @@
.. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com>
"""

from __future__ import absolute_import
from __future__ import unicode_literals
from __future__ import absolute_import, unicode_literals

import pytest
import typepy

from ._common import (
EXCEPTION_RESULT,
convert_wrapper,
)
from ._common import EXCEPTION_RESULT, convert_wrapper


nan = float("nan")
Expand Down
8 changes: 1 addition & 7 deletions test/test_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,8 @@

import pytest
import six

from typepy import (
is_hex,
is_list_or_tuple,
is_empty_sequence,
is_not_empty_sequence,
)
from six.moves import range
from typepy import is_empty_sequence, is_hex, is_list_or_tuple, is_not_empty_sequence


nan = float("nan")
Expand Down
5 changes: 1 addition & 4 deletions test/test_str_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@
import itertools

import pytest
from typepy import (
is_null_string,
is_not_null_string,
)
from typepy import is_not_null_string, is_null_string


nan = float("nan")
Expand Down
4 changes: 2 additions & 2 deletions test/test_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
from __future__ import unicode_literals

import datetime
import ipaddress
from decimal import Decimal
from ipaddress import ip_address
import ipaddress

import pytest
import pytz
import six
from typepy import StrictLevel
import typepy
from typepy import StrictLevel


class Test_TypeClass_repr(object):
Expand Down
1 change: 1 addition & 0 deletions typepy/_const.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"""

from __future__ import absolute_import

from decimal import Decimal


Expand Down
3 changes: 1 addition & 2 deletions typepy/_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
.. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com>
"""

from __future__ import absolute_import
from __future__ import unicode_literals
from __future__ import absolute_import, unicode_literals

import warnings

Expand Down
5 changes: 1 addition & 4 deletions typepy/checker/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,4 @@
from ._nan import NanTypeChecker
from ._none import NoneTypeChecker
from ._realnumber import RealNumberTypeChecker
from ._string import (
StringTypeChecker,
NullStringTypeChecker,
)
from ._string import NullStringTypeChecker, StringTypeChecker
5 changes: 1 addition & 4 deletions typepy/checker/_bool.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@

from .._const import StrictLevel
from ..type._integer import Integer
from ._checker import (
TypeChecker,
TypeCheckerStrictLevel,
)
from ._checker import TypeChecker, TypeCheckerStrictLevel
from ._common import isstring


Expand Down

0 comments on commit ff9c961

Please sign in to comment.