Skip to content

Commit

Permalink
bugfix: make lint
Browse files Browse the repository at this point in the history
  • Loading branch information
carver committed May 2, 2018
1 parent 811bb8a commit 57b1649
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ clean-pyc:
find . -name '*~' -exec rm -f {} +

lint:
tox -eflake8py3{5,6}
tox -elint-py36

test:
py.test --tb native tests
Expand Down
1 change: 0 additions & 1 deletion evm/chains/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
MAX_UNCLE_DEPTH,
)
from evm.db.chain import AsyncChainDB
from evm.db.trie import make_trie_root_and_nodes
from evm.estimators import (
get_gas_estimator,
)
Expand Down
1 change: 0 additions & 1 deletion evm/vm/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,6 @@ def import_block(self, block):
receipts = tuple()
header_with_txns = self.block.header


self.block = self.seal_block(self.block, header_with_txns, block.transactions, receipts)

return self.mine_block()
Expand Down
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,9 @@ basepython=python3.6
setenv=MYPYPATH={toxinidir}:{toxinidir}/stubs
commands=
flake8 {toxinidir}/eth_typing
flake8 {toxinidir}/evm
flake8 {toxinidir}/p2p
flake8 {toxinidir}/trinity
flake8 {toxinidir}/tests/trinity --exclude=""
flake8 {toxinidir}/tests
# TODO: Drop --ignore-missing-imports once we have type annotations for eth_utils, coincurve and cytoolz
mypy --follow-imports=silent --ignore-missing-imports --check-untyped-defs --disallow-incomplete-defs -p eth_typing -p p2p -p trinity

0 comments on commit 57b1649

Please sign in to comment.