Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .codespellrc

This file was deleted.

8 changes: 3 additions & 5 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -188,14 +188,12 @@ jobs:
- name: Check docs changes
run: git diff --exit-code

codespell:
typos:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: codespell-project/actions-codespell@v2
with:
skip: "*.json"
- uses: crate-ci/typos@v1

check-toml:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -278,7 +276,7 @@ jobs:
- fmt
- udeps
- book
- codespell
- typos
- grafana
- no-test-deps
- features
Expand Down
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -415,12 +415,12 @@ clippy-op-dev:
--locked \
--all-features

lint-codespell: ensure-codespell
codespell --skip "*.json" --skip "./testing/ef-tests/ethereum-tests"
lint-typos: ensure-typos
typos

ensure-codespell:
@if ! command -v codespell &> /dev/null; then \
echo "codespell not found. Please install it by running the command `pip install codespell` or refer to the following link for more information: https://github.com/codespell-project/codespell" \
ensure-typos:
@if ! command -v typos &> /dev/null; then \
echo "typos not found. Please install it by running the command `cargo install typos-cli` or refer to the following link for more information: https://github.com/crate-ci/typos" \
exit 1; \
fi

Expand All @@ -446,7 +446,7 @@ ensure-dprint:
lint:
make fmt && \
make clippy && \
make lint-codespell && \
make lint-typos && \
make lint-toml

clippy-fix:
Expand Down
4 changes: 2 additions & 2 deletions crates/rpc/rpc-eth-api/src/helpers/trace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ pub trait Trace:
///
/// This
/// 1. fetches all transactions of the block
/// 2. configures the EVM evn
/// 2. configures the EVM env
/// 3. loops over all transactions and executes them
/// 4. calls the callback with the transaction info, the execution result, the changed state
/// _after_ the transaction [`StateProviderDatabase`] and the database that points to the
Expand Down Expand Up @@ -400,7 +400,7 @@ pub trait Trace:
///
/// This
/// 1. fetches all transactions of the block
/// 2. configures the EVM evn
/// 2. configures the EVM env
/// 3. loops over all transactions and executes them
/// 4. calls the callback with the transaction info, the execution result, the changed state
/// _after_ the transaction `EvmState` and the database that points to the state right
Expand Down
39 changes: 39 additions & 0 deletions typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
[files]
extend-exclude = [
".git",
"target",
"crates/storage/libmdbx-rs/mdbx-sys/libmdbx",
"Cargo.toml",
"Cargo.lock",
"testing/ef-tests",
]

[default]
extend-ignore-re = [
# Hex strings of various lengths
"(?i)0x[0-9a-f]{8}", # 8 hex chars
"(?i)0x[0-9a-f]{40}", # 40 hex chars
"(?i)0x[0-9a-f]{64}", # 64 hex chars
"(?i)[0-9a-f]{8}", # 8 hex chars without 0x
"(?i)[0-9a-f]{40}", # 40 hex chars without 0x
"(?i)[0-9a-f]{64}", # 64 hex chars without 0x
# Ordinals in identifiers
"[0-9]+nd",
"[0-9]+th",
"[0-9]+st",
"[0-9]+rd",
]

[default.extend-words]
# These are valid identifiers/terms that should be allowed
crate = "crate"
ser = "ser"
ratatui = "ratatui"
seeked = "seeked" # Past tense of seek, used in trie iterator
Seeked = "Seeked" # Type name in trie iterator
Whe = "Whe" # Part of base64 encoded signature
hel = "hel" # Part of hostname bootnode-hetzner-hel
ONL = "ONL" # Part of base64 encoded ENR
Iy = "Iy" # Part of base64 encoded ENR
flate = "flate" # zlib-flate is a valid tool name
Pn = "Pn" # Part of UPnP (Universal Plug and Play)
Loading