Skip to content

Commit

Permalink
Linted files in ETH and tests directory
Browse files Browse the repository at this point in the history
  • Loading branch information
prathmeshranaut authored and pacrob committed May 4, 2023
1 parent 1ce3072 commit ffc4e18
Show file tree
Hide file tree
Showing 305 changed files with 3,942 additions and 2,767 deletions.
7 changes: 0 additions & 7 deletions docs/api/api.abc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -164,13 +164,6 @@ ComputationAPI
:members:


MessageComputationAPI
---------------------

.. autoclass:: eth.abc.MessageComputationAPI
:members:


AccountStorageDatabaseAPI
-------------------------

Expand Down
6 changes: 0 additions & 6 deletions docs/api/vm/api.vm.computation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,3 @@ BaseComputation

.. autoclass:: eth.vm.computation.BaseComputation
:members:

MessageComputation
------------------

.. autoclass:: eth.vm.computation.MessageComputation
:members:
72 changes: 36 additions & 36 deletions docs/api/vm/api.vm.forks.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Forks


Frontier
---------
--------

FrontierVM
~~~~~~~~~~
Expand All @@ -17,10 +17,10 @@ FrontierState
.. autoclass:: eth.vm.forks.frontier.state.FrontierState
:members:

FrontierMessageComputation
~~~~~~~~~~~~~~~~~~~~~~~~~~
FrontierComputation
~~~~~~~~~~~~~~~~~~~

.. autoclass:: eth.vm.forks.frontier.computation.FrontierMessageComputation
.. autoclass:: eth.vm.forks.frontier.computation.FrontierComputation
:members:


Expand All @@ -39,10 +39,10 @@ HomesteadState
.. autoclass:: eth.vm.forks.homestead.state.HomesteadState
:members:

HomesteadMessageComputation
~~~~~~~~~~~~~~~~~~~~~~~~~~~
HomesteadComputation
~~~~~~~~~~~~~~~~~~~~

.. autoclass:: eth.vm.forks.homestead.computation.HomesteadMessageComputation
.. autoclass:: eth.vm.forks.homestead.computation.HomesteadComputation
:members:


Expand All @@ -61,18 +61,18 @@ TangerineWhistleState
.. autoclass:: eth.vm.forks.tangerine_whistle.state.TangerineWhistleState
:members:

TangerineWhistleMessageComputation
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TangerineWhistleComputation
~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. autoclass:: eth.vm.forks.tangerine_whistle.computation.TangerineWhistleMessageComputation
.. autoclass:: eth.vm.forks.tangerine_whistle.computation.TangerineWhistleComputation
:members:


SpuriousDragon
--------------

SpuriousDragonVM
~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~

.. autoclass:: eth.vm.forks.spurious_dragon.SpuriousDragonVM
:members:
Expand All @@ -83,10 +83,10 @@ SpuriousDragonState
.. autoclass:: eth.vm.forks.spurious_dragon.state.SpuriousDragonState
:members:

SpuriousDragonMessageComputation
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
SpuriousDragonComputation
~~~~~~~~~~~~~~~~~~~~~~~~~

.. autoclass:: eth.vm.forks.spurious_dragon.computation.SpuriousDragonMessageComputation
.. autoclass:: eth.vm.forks.spurious_dragon.computation.SpuriousDragonComputation
:members:


Expand All @@ -105,10 +105,10 @@ ByzantiumState
.. autoclass:: eth.vm.forks.byzantium.state.ByzantiumState
:members:

ByzantiumMessageComputation
~~~~~~~~~~~~~~~~~~~~~~~~~~~
ByzantiumComputation
~~~~~~~~~~~~~~~~~~~~

.. autoclass:: eth.vm.forks.byzantium.computation.ByzantiumMessageComputation
.. autoclass:: eth.vm.forks.byzantium.computation.ByzantiumComputation
:members:


Expand All @@ -127,10 +127,10 @@ ConstantinopleState
.. autoclass:: eth.vm.forks.constantinople.state.ConstantinopleState
:members:

ConstantinopleMessageComputation
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ConstantinopleComputation
~~~~~~~~~~~~~~~~~~~~~~~~~

.. autoclass:: eth.vm.forks.constantinople.computation.ConstantinopleMessageComputation
.. autoclass:: eth.vm.forks.constantinople.computation.ConstantinopleComputation
:members:


Expand All @@ -149,40 +149,40 @@ PetersburgState
.. autoclass:: eth.vm.forks.petersburg.state.PetersburgState
:members:

PetersburgMessageComputation
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PetersburgComputation
~~~~~~~~~~~~~~~~~~~~~

.. autoclass:: eth.vm.forks.petersburg.computation.PetersburgMessageComputation
.. autoclass:: eth.vm.forks.petersburg.computation.PetersburgComputation
:members:


Istanbul
----------
--------

IstanbulVM
~~~~~~~~~~~~
~~~~~~~~~~

.. autoclass:: eth.vm.forks.istanbul.IstanbulVM
:members:

IstanbulState
~~~~~~~~~~~~~~~
~~~~~~~~~~~~~

.. autoclass:: eth.vm.forks.istanbul.state.IstanbulState
:members:

IstanbulMessageComputation
~~~~~~~~~~~~~~~~~~~~~~~~~~
IstanbulComputation
~~~~~~~~~~~~~~~~~~~

.. autoclass:: eth.vm.forks.istanbul.computation.IstanbulMessageComputation
.. autoclass:: eth.vm.forks.istanbul.computation.IstanbulComputation
:members:


Muir Glacier
------------

Submodules
~~~~~~~~~~~
~~~~~~~~~~

eth.vm.forks.muir\_glacier.blocks module
========================================
Expand Down Expand Up @@ -243,7 +243,7 @@ Module contents


Berlin
-------
------

Submodules
~~~~~~~~~~
Expand Down Expand Up @@ -489,39 +489,39 @@ Submodules
~~~~~~~~~~

eth.vm.forks.gray\_glacier.blocks module
=========================================
========================================

.. automodule:: eth.vm.forks.gray_glacier.blocks
:members:
:undoc-members:
:show-inheritance:

eth.vm.forks.gray\_glacier.computation module
==============================================
=============================================

.. automodule:: eth.vm.forks.gray_glacier.computation
:members:
:undoc-members:
:show-inheritance:

eth.vm.forks.gray\_glacier.headers module
==========================================
=========================================

.. automodule:: eth.vm.forks.gray_glacier.headers
:members:
:undoc-members:
:show-inheritance:

eth.vm.forks.gray\_glacier.state module
========================================
=======================================

.. automodule:: eth.vm.forks.gray_glacier.state
:members:
:undoc-members:
:show-inheritance:

eth.vm.forks.gray\_glacier.transactions module
===============================================
==============================================

.. automodule:: eth.vm.forks.gray_glacier.transactions
:members:
Expand Down
9 changes: 6 additions & 3 deletions eth/_utils/address.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
from eth_hash.auto import (
keccak,
)
from eth_typing import (
Address,
)
import rlp

from eth_hash.auto import keccak
from eth_typing import Address

from eth._utils.numeric import (
int_to_bytes32,
)
Expand Down
4 changes: 2 additions & 2 deletions eth/_utils/blake2/coders.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
from typing import (
cast,
Iterable,
Tuple,
cast,
)

from eth_utils import (
ValidationError,
to_int,
to_tuple,
ValidationError,
)

from .compression import (
Expand Down
15 changes: 8 additions & 7 deletions eth/_utils/bn128.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
from typing import (
Tuple,
)

from eth_utils import (
ValidationError,
)
from py_ecc import (
optimized_bn128 as bn128,
)
from py_ecc.optimized_bn128 import (
FQP,
FQ2,
FQP,
)

from eth_utils import (
ValidationError,
)

from typing import Tuple


def validate_point(x: int, y: int) -> Tuple[bn128.FQ, bn128.FQ, bn128.FQ]:
FQ = bn128.FQ
Expand Down
22 changes: 15 additions & 7 deletions eth/_utils/datatypes.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,25 @@
from eth_utils.toolz import (
assoc,
groupby,
from typing import (
Any,
Dict,
Iterator,
List,
Tuple,
Type,
TypeVar,
)

from eth_utils import (
to_dict,
to_set,
)
from eth_utils.toolz import (
assoc,
groupby,
)


from typing import Any, Dict, Tuple, Type, TypeVar, Iterator, List

from eth.abc import ConfigurableAPI
from eth.abc import (
ConfigurableAPI,
)


def _is_local_prop(prop: str) -> bool:
Expand Down
2 changes: 0 additions & 2 deletions eth/_utils/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"""

import os

from typing import (
Any,
Callable,
Expand All @@ -16,7 +15,6 @@
Union,
)


# No set literals because we support Python 2.6.
TRUE_VALUES = {
True,
Expand Down
1 change: 0 additions & 1 deletion eth/_utils/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
TypeVar,
)


TItem = TypeVar('TItem')


Expand Down
12 changes: 7 additions & 5 deletions eth/_utils/headers.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,19 @@
Address,
)

from eth.abc import BlockHeaderAPI
from eth.abc import (
BlockHeaderAPI,
)
from eth.constants import (
BLANK_ROOT_HASH,
GENESIS_BLOCK_NUMBER,
GENESIS_PARENT_HASH,
GAS_LIMIT_EMA_DENOMINATOR,
GAS_LIMIT_ADJUSTMENT_FACTOR,
GAS_LIMIT_EMA_DENOMINATOR,
GAS_LIMIT_MAXIMUM,
GAS_LIMIT_MINIMUM,
GAS_LIMIT_USAGE_ADJUSTMENT_NUMERATOR,
GAS_LIMIT_USAGE_ADJUSTMENT_DENOMINATOR,
GAS_LIMIT_USAGE_ADJUSTMENT_NUMERATOR,
GENESIS_BLOCK_NUMBER,
GENESIS_PARENT_HASH,
ZERO_ADDRESS,
)
from eth.typing import (
Expand Down
5 changes: 3 additions & 2 deletions eth/_utils/module_loading.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from importlib import (
import_module,
)
import operator
from importlib import import_module

from types import (
ModuleType,
)
Expand Down
Loading

0 comments on commit ffc4e18

Please sign in to comment.