Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

Commit 87b9415

Browse files
committed
run lint and clean up __init__ files
convert .format and % strings that pyupgrade can't do drop unnecessary deps, remove unnecessary upper pins remove pre-commit install from ci, it's handled by tox
1 parent c220149 commit 87b9415

File tree

167 files changed

+486
-664
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

167 files changed

+486
-664
lines changed

.circleci/config.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,6 @@ common: &common
5252
command: |
5353
python -m pip install --upgrade pip
5454
python -m pip install tox
55-
- run:
56-
name: install pre-commit
57-
command: python -m pip install --progress-bar=off pre-commit
5855
- run:
5956
name: run tox
6057
command: python -m tox run -r

.deepsource.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ name = "python"
99
enabled = true
1010

1111
[analyzers.meta]
12-
runtime_version = "3.x.x"
12+
runtime_version = "3.x.x"

.git-blame-ignore-revs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ e9049224a98439cc27522e322cc09e402503565a
33
1ee3cce389e48b37895e812692f87aaf4f96e27f
44

55
# ignore SHA that added black
6-
6c958538082fcf6e6d9165c30f289e3c64dbfc5a
6+
6c958538082fcf6e6d9165c30f289e3c64dbfc5a

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@ repos:
4747
rev: v1.5.1
4848
hooks:
4949
- id: mypy
50-
exclude: tests/
50+
files: eth/

DEVELOPMENT.md

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,26 @@ The following workflows are supported for blocks.
77
Incremental creation
88

99
1. Initialize Block - `Header.from_parent(...)`:
10-
- `coinbase`
11-
- `parent_hash`
12-
- `difficulty`
13-
- `block_number`
14-
- `gas_limit`
15-
- `timestamp`
16-
2. Apply Transaction(s) - `Block.apply_transaction(...)`:
17-
3. Mine Block - `Block.mine(...)`:
18-
- `uncles_hash`
19-
- `state_root`
20-
- `transaction_root`
21-
- `receipts_root`
22-
- `bloom`
23-
- `gas_used`
24-
- `extra_data`
25-
- `mix_hash`
26-
- `nonce`
27-
10+
- `coinbase`
11+
- `parent_hash`
12+
- `difficulty`
13+
- `block_number`
14+
- `gas_limit`
15+
- `timestamp`
16+
1. Apply Transaction(s) - `Block.apply_transaction(...)`:
17+
1. Mine Block - `Block.mine(...)`:
18+
- `uncles_hash`
19+
- `state_root`
20+
- `transaction_root`
21+
- `receipts_root`
22+
- `bloom`
23+
- `gas_used`
24+
- `extra_data`
25+
- `mix_hash`
26+
- `nonce`
2827

2928
## 2. Block Ingestion
3029

3130
> (This is actually just a special case of use case #1.)
3231
33-
Full ingestion of a complete block.
32+
Full ingestion of a complete block.

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ notes:
7171
git commit -m "Compile release notes for v$(UPCOMING_VERSION)"
7272

7373
release: check-bump clean
74-
# require that you be on a branch that's linked to upstream/master
75-
git status -s -b | head -1 | grep "\.\.upstream/master"
74+
# require that you be on a branch that's linked to upstream/main
75+
git status -s -b | head -1 | grep "\.\.upstream/main"
7676
# require that upstream is configured for ethereum/py-evm
7777
@git remote -v | grep -E "upstream\[email protected]:ethereum/py-evm.git \(push\)|upstream\thttps://(www.)?github.com/ethereum/py-evm \(push\)"
7878
# verify that docs build correctly

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
[![Python versions](https://img.shields.io/pypi/pyversions/py-evm.svg)](https://pypi.python.org/pypi/py-evm)
77
[![Docs build](https://readthedocs.org/projects/py-evm/badge/?version=latest)](https://py-evm.readthedocs.io/en/latest/?badge=latest)
88

9-
109
## Py-EVM
1110

1211
Py-EVM is an implementation of the Ethereum protocol in Python. It contains the low level

docs/api/api.chain.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ MiningChain
1717
-----------
1818

1919
.. autoclass:: eth.chains.base.MiningChain
20-
:members:
20+
:members:

docs/api/api.vm.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ Virtual Machine
1818
vm/api.vm.stack
1919
vm/api.vm.state
2020
vm/api.vm.transaction_context
21-
vm/api.vm.forks
21+
vm/api.vm.forks

docs/api/db/api.db.atomic.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,3 @@ AtomicDB
1010

1111
.. autoclass:: eth.db.atomic.AtomicDBWriteBatch
1212
:members:
13-

0 commit comments

Comments
 (0)