ci: Update and configure isort, and make it happy

This commit is contained in:
2023-11-14 05:00:03 +01:00
parent d1a0510734
commit 8f5d355ea0
12 changed files with 44 additions and 39 deletions

View File

@@ -20,6 +20,6 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
from .models import Feed, LocalFeed, Message, LocalMessage, NoPrivateKeyException
from .models import Feed, LocalFeed, LocalMessage, Message, NoPrivateKeyException
__all__ = ("Feed", "LocalFeed", "Message", "LocalMessage", "NoPrivateKeyException")

View File

@@ -20,16 +20,15 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
import datetime
from base64 import b64encode
from collections import namedtuple, OrderedDict
from collections import OrderedDict, namedtuple
import datetime
from hashlib import sha256
from simplejson import dumps, loads
from ssb.util import tag
OrderedMsg = namedtuple("OrderedMsg", ("previous", "author", "sequence", "timestamp", "hash", "content"))

View File

@@ -20,18 +20,16 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
import logging
import struct
from asyncio import Event, Queue
from enum import Enum
from time import time
import logging
from math import ceil
import struct
from time import time
import simplejson
from async_generator import async_generator, yield_
from secret_handshake import SHSClient, SHSServer
import simplejson
logger = logging.getLogger("packet_stream")

View File

@@ -20,11 +20,11 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
import os
import yaml
from base64 import b64decode, b64encode
import os
from nacl.signing import SigningKey
import yaml
class ConfigException(Exception):