run black over dangling files

This commit is contained in:
Alex Stokes 2019-08-02 11:44:11 -07:00
parent da9d5cadec
commit 7b7c8ad30d
No known key found for this signature in database
GPG Key ID: 51CE1721B245C086
11 changed files with 844 additions and 560 deletions

View File

@ -1,7 +1,6 @@
from abc import ABC, abstractmethod
class IRawConnection(ABC):
"""
A Raw Connection provides a Reader and a Writer

File diff suppressed because it is too large Load Diff

View File

@ -1,3 +1,2 @@
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc

View File

@ -5,7 +5,6 @@ from libp2p.peer.id import ID
from libp2p.peer.peerinfo import PeerInfo
class IContentRouting(ABC):
@abstractmethod
def provide(self, cid: bytes, announce: bool = True) -> None:

View File

@ -3,7 +3,6 @@ from libp2p.security.security_multistream import SecurityMultistream
class TransportUpgrader:
def __init__(self, secOpt, muxerOpt):
# Store security option
self.security_multistream = SecurityMultistream()

View File

@ -23,9 +23,7 @@ from libp2p.network.notifee_interface import INotifee
from libp2p.host.basic_host import BasicHost
class MyNotifee(INotifee):
def __init__(self, events, val_to_append_to_event):
self.events = events
self.val_to_append_to_event = val_to_append_to_event
@ -50,7 +48,6 @@ class MyNotifee(INotifee):
class InvalidNotifee:
def __init__(self):
pass

View File

@ -8,8 +8,6 @@ from .configs import GOSSIPSUB_PARAMS
from .factories import FloodsubFactory, GossipsubFactory, HostFactory, PubsubFactory
@pytest.fixture
def num_hosts():
return 3

View File

@ -8,7 +8,6 @@ from tests.utils import cleanup, connect
from .dummy_account_node import DummyAccountNode
def create_setup_in_new_thread_func(dummy_node):
def setup_in_new_thread():
asyncio.ensure_future(dummy_node.setup_crypto_networking())

View File

@ -13,8 +13,6 @@ from .floodsub_integration_test_settings import (
)
@pytest.mark.parametrize("num_hosts", (2,))
@pytest.mark.asyncio
async def test_simple_two_nodes(pubsubs_fsub):

View File

@ -57,9 +57,7 @@ async def test_join(num_hosts, hosts, gossipsubs, pubsubs_gsub):
assert hosts[i].get_id() in gossipsubs[central_node_index].mesh[topic]
assert hosts[central_node_index].get_id() in gossipsubs[i].mesh[topic]
else:
assert (
hosts[i].get_id() not in gossipsubs[central_node_index].mesh[topic]
)
assert hosts[i].get_id() not in gossipsubs[central_node_index].mesh[topic]
assert topic not in gossipsubs[i].mesh
await cleanup()

View File

@ -1,7 +1,6 @@
import pytest
@pytest.mark.parametrize("test_input,expected", [("3+5", 8), ("2+4", 6), ("6*9", 54)])
def test_eval(test_input, expected):
assert eval(test_input) == expected