ci: Add and configure isort, and make it happy

This commit is contained in:
2023-11-01 07:16:17 +01:00
parent 9bf9352bfc
commit ebcc94516c
12 changed files with 39 additions and 31 deletions

View File

@@ -1,5 +1,5 @@
"""Feed related functionality"""
from .models import Feed, LocalFeed, Message, LocalMessage, NoPrivateKeyException
from .models import Feed, LocalFeed, LocalMessage, Message, NoPrivateKeyException
__all__ = ("Feed", "LocalFeed", "Message", "LocalMessage", "NoPrivateKeyException")

View File

@@ -1,15 +1,14 @@
"""Feed models"""
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

@@ -1,15 +1,14 @@
"""Packet streams"""
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
logger = logging.getLogger("packet_stream")

View File

@@ -3,8 +3,8 @@
from base64 import b64decode, b64encode
import os
import yaml
from nacl.signing import SigningKey
import yaml
class ConfigException(Exception):