mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-07 22:43:56 -05:00
chore: migrate from codespell to typos (#17501)
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
[codespell]
|
||||
skip = .git,target,./crates/storage/libmdbx-rs/mdbx-sys/libmdbx,Cargo.toml,Cargo.lock
|
||||
ignore-words-list = crate,ser,ratatui
|
||||
8
.github/workflows/lint.yml
vendored
8
.github/workflows/lint.yml
vendored
@@ -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
|
||||
@@ -278,7 +276,7 @@ jobs:
|
||||
- fmt
|
||||
- udeps
|
||||
- book
|
||||
- codespell
|
||||
- typos
|
||||
- grafana
|
||||
- no-test-deps
|
||||
- features
|
||||
|
||||
12
Makefile
12
Makefile
@@ -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
|
||||
|
||||
@@ -446,7 +446,7 @@ ensure-dprint:
|
||||
lint:
|
||||
make fmt && \
|
||||
make clippy && \
|
||||
make lint-codespell && \
|
||||
make lint-typos && \
|
||||
make lint-toml
|
||||
|
||||
clippy-fix:
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
|
||||
39
typos.toml
Normal file
39
typos.toml
Normal file
@@ -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)
|
||||
Reference in New Issue
Block a user