Skip to content

Commit eb5d97d

Browse files
committed
Fix isort config and imports
1 parent 46ce6a1 commit eb5d97d

10 files changed

Lines changed: 24 additions & 21 deletions

File tree

examples/callback.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
import ssl
2+
13
import logbook
24
import logbook.more
3-
import ssl
45
from aiohttp import web
56

67
from threema.gateway import (

setup.cfg

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,8 @@ line_length = 90
99
multi_line_output = 3
1010
force_grid_wrap = true
1111
balanced_wrapping = true
12-
order_by_type = true
1312
atomic = true
1413
include_trailing_comma = true
15-
known_standard_library = asyncio,typing
16-
known_first_party = threema
1714

1815
[tool:pytest]
1916
asyncio_mode=strict

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import ast
22
import os
33
import sys
4+
45
from setuptools import (
56
find_packages,
67
setup,

tests/conftest.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
import asyncio
22
import asyncio.subprocess
3-
4-
import aiohttp
53
import binascii
64
import collections
75
import copy
86
import hashlib
97
import hmac
108
import os
11-
import pytest
129
import socket
1310
import ssl
1411
import subprocess
1512
import sys
1613
import time
17-
from aiohttp import web
1814
from contextlib import closing
1915

16+
import aiohttp
17+
import pytest
18+
from aiohttp import web
19+
2020
import threema.gateway
2121
from threema.gateway import e2e
2222
from threema.gateway.key import Key

tests/test_cli.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
import pytest
21
import subprocess
32

3+
import pytest
4+
45
from threema.gateway import ReceptionCapability
56
from threema.gateway import __version__ as _version
67
from threema.gateway import feature_level

threema/gateway/_gateway.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
import aiohttp
21
import enum
2+
3+
import aiohttp
34
import libnacl.encode
45
import libnacl.public
56

threema/gateway/bin/gateway_client.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22
The command line interface for the Threema gateway service.
33
"""
44
import binascii
5+
import os
6+
import re
7+
58
import click
69
import logbook
710
import logbook.more
8-
import os
9-
import re
1011

1112
from threema.gateway import Connection
1213
from threema.gateway import __version__ as _version

threema/gateway/e2e.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
"""
22
Provides classes and functions for the end-to-end encryption mode.
33
"""
4-
from typing import Tuple
5-
64
import abc
75
import binascii
86
import collections
@@ -12,13 +10,15 @@
1210
import hashlib
1311
import hmac
1412
import json
13+
import mimetypes
14+
import os
15+
import struct
16+
from typing import Tuple
17+
1518
import libnacl
1619
import libnacl.encode
1720
import libnacl.public
1821
import libnacl.secret
19-
import mimetypes
20-
import os
21-
import struct
2222
from aiohttp import web
2323

2424
from . import ReceptionCapability

threema/gateway/key.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import enum
55
import hashlib
66
import hmac
7+
78
import libnacl.encode
89
import libnacl.public
910
import libnacl.secret

threema/gateway/util.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@
22
Utility functions.
33
"""
44
import asyncio
5-
from typing import Set # noqa
6-
75
import collections
86
import functools
97
import inspect
108
import io
9+
import logging
10+
import os
11+
from typing import Set # noqa
12+
1113
import libnacl
1214
import logbook
1315
import logbook.compat
1416
import logbook.more
15-
import logging
16-
import os
1717
import wrapt
1818

1919
from .key import Key

0 commit comments

Comments
 (0)