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

@@ -3,11 +3,10 @@
from base64 import b64decode
from collections import OrderedDict
import pytest
from nacl.signing import SigningKey, VerifyKey
import pytest
from ssb.feed import LocalMessage, LocalFeed, Feed, Message, NoPrivateKeyException
from ssb.feed import Feed, LocalFeed, LocalMessage, Message, NoPrivateKeyException
SERIALIZED_M1 = b"""{
"previous": null,

View File

@@ -1,11 +1,11 @@
"""Tests for the packet stream"""
from asyncio import Event, ensure_future, gather
import json
from asyncio import ensure_future, gather, Event
import pytest
from secret_handshake.network import SHSDuplexStream
from ssb.packet_stream import PacketStream, PSMessageType

View File

@@ -5,8 +5,7 @@ from unittest.mock import mock_open, patch
import pytest
from ssb.util import load_ssb_secret, ConfigException
from ssb.util import ConfigException, load_ssb_secret
CONFIG_FILE = """
## Comments should be supported too