Skip to content

Commit

Permalink
fix: import oreder fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
rezamahdi committed Feb 27, 2022
1 parent 5e60a48 commit d43cda8
Show file tree
Hide file tree
Showing 10 changed files with 25 additions and 18 deletions.
4 changes: 0 additions & 4 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,14 @@
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html

# -- Path setup --------------------------------------------------------------

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
# import os
# import sys
# sys.path.insert(0, os.path.abspath('.'))


# -- Project information -----------------------------------------------------

project = "Pyzantium"
Expand Down
3 changes: 2 additions & 1 deletion src/pyzantium/block.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from abc import ABC, abstractmethod
from abc import ABC
from abc import abstractmethod
from datetime import datetime
from typing import Generator

Expand Down
4 changes: 3 additions & 1 deletion src/pyzantium/chain.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
from ctypes import Union
from cryptography.hazmat.primitives import hashes
from typing import Union

from cryptography.hazmat.primitives import hashes

from .block import Block
from .storage import Storage

Expand Down
3 changes: 2 additions & 1 deletion src/pyzantium/endpoint/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from abc import ABC, abstractmethod
from abc import ABC
from abc import abstractmethod
from typing import Optional


Expand Down
3 changes: 2 additions & 1 deletion src/pyzantium/endpoint/flask.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from . import Endpoint
from flask import Flask

from . import Endpoint


class FlaskEndpoint(Endpoint):
"""
Expand Down
3 changes: 2 additions & 1 deletion src/pyzantium/node.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import argparse
import json
import pyzantium

import flask
import pyzantium

app = flask.Flask("Pyzantium")

Expand Down
4 changes: 2 additions & 2 deletions src/pyzantium/storage/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
Note that this class is an abstract class and doesn't contain any implementation
so is not instantiniatable.
"""

from abc import ABC, abstractmethod
from abc import ABC
from abc import abstractmethod


class Storage(ABC):
Expand Down
7 changes: 4 additions & 3 deletions src/pyzantium/storage/disk.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
from nis import match
from . import Storage
from typing import Union
from pathlib import Path
from os import mkdir
from pathlib import Path
from typing import Union

from . import Storage


class DiskStorage(Storage):
Expand Down
8 changes: 5 additions & 3 deletions src/pyzantium/verify.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
from abc import ABC, abstractmethod
from abc import ABC
from abc import abstractmethod
from typing import Any

from cryptography.hazmat.primitives.asymmetric import ec, utils
from cryptography.hazmat.primitives import hashes
from cryptography.exceptions import InvalidSignature
from cryptography.hazmat.primitives import hashes
from cryptography.hazmat.primitives.asymmetric import ec
from cryptography.hazmat.primitives.asymmetric import utils


class Verifier(ABC):
Expand Down
4 changes: 3 additions & 1 deletion test/block_test.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
from pytest import mark, fixture
import hashlib

from pytest import fixture
from pytest import mark


@fixture
def chain():
Expand Down

0 comments on commit d43cda8

Please sign in to comment.