Skip to content

Commit

Permalink
Fix isort config and imports
Browse files Browse the repository at this point in the history
  • Loading branch information
lgrahl committed Jun 13, 2022
1 parent 46ce6a1 commit eb5d97d
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 21 deletions.
3 changes: 2 additions & 1 deletion examples/callback.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import ssl

import logbook
import logbook.more
import ssl
from aiohttp import web

from threema.gateway import (
Expand Down
3 changes: 0 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,8 @@ line_length = 90
multi_line_output = 3
force_grid_wrap = true
balanced_wrapping = true
order_by_type = true
atomic = true
include_trailing_comma = true
known_standard_library = asyncio,typing
known_first_party = threema

[tool:pytest]
asyncio_mode=strict
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import ast
import os
import sys

from setuptools import (
find_packages,
setup,
Expand Down
8 changes: 4 additions & 4 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
import asyncio
import asyncio.subprocess

import aiohttp
import binascii
import collections
import copy
import hashlib
import hmac
import os
import pytest
import socket
import ssl
import subprocess
import sys
import time
from aiohttp import web
from contextlib import closing

import aiohttp
import pytest
from aiohttp import web

import threema.gateway
from threema.gateway import e2e
from threema.gateway.key import Key
Expand Down
3 changes: 2 additions & 1 deletion tests/test_cli.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import pytest
import subprocess

import pytest

from threema.gateway import ReceptionCapability
from threema.gateway import __version__ as _version
from threema.gateway import feature_level
Expand Down
3 changes: 2 additions & 1 deletion threema/gateway/_gateway.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import aiohttp
import enum

import aiohttp
import libnacl.encode
import libnacl.public

Expand Down
5 changes: 3 additions & 2 deletions threema/gateway/bin/gateway_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
The command line interface for the Threema gateway service.
"""
import binascii
import os
import re

import click
import logbook
import logbook.more
import os
import re

from threema.gateway import Connection
from threema.gateway import __version__ as _version
Expand Down
10 changes: 5 additions & 5 deletions threema/gateway/e2e.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
"""
Provides classes and functions for the end-to-end encryption mode.
"""
from typing import Tuple

import abc
import binascii
import collections
Expand All @@ -12,13 +10,15 @@
import hashlib
import hmac
import json
import mimetypes
import os
import struct
from typing import Tuple

import libnacl
import libnacl.encode
import libnacl.public
import libnacl.secret
import mimetypes
import os
import struct
from aiohttp import web

from . import ReceptionCapability
Expand Down
1 change: 1 addition & 0 deletions threema/gateway/key.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import enum
import hashlib
import hmac

import libnacl.encode
import libnacl.public
import libnacl.secret
Expand Down
8 changes: 4 additions & 4 deletions threema/gateway/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
Utility functions.
"""
import asyncio
from typing import Set # noqa

import collections
import functools
import inspect
import io
import logging
import os
from typing import Set # noqa

import libnacl
import logbook
import logbook.compat
import logbook.more
import logging
import os
import wrapt

from .key import Key
Expand Down

0 comments on commit eb5d97d

Please sign in to comment.