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"))