Skip to content

Commit ad266f6

Browse files
committed
more N806 exceptions
1 parent 35c8703 commit ad266f6

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

pyproject.toml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,11 @@ ignore = [
349349
"N802" # Property names do not need to be lowercase
350350
]
351351
"src/ethereum_spec_tools/lint/*" = [
352-
"N802" # Special Linting Code absolved of naming reqs
352+
"N802" # Special linting code absolved of function naming reqs
353+
]
354+
"src/ethereum/crypto/*" = [
355+
"N806", # Special crypto code absolved of variable naming reqs
356+
"N802" # Special crypto code absolved of function naming reqs
353357
]
354358

355359
[tool.ruff.lint.mccabe]
@@ -378,6 +382,3 @@ check-hidden = false # Don't check hidden files (starting with .)
378382

379383
[tool.uv]
380384
required-version = ">=0.7.0"
381-
382-
[tool.uv.sources]
383-
"ethereum-spec-evm-resolver" = { git = "https://github.com/spencer-tb/ethereum-spec-evm-resolver", rev = "38d4d19d9bc9e2aea900aac5c4b511665c294322" }

src/ethereum_spec_tools/evm_tools/t8n/env.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,10 @@ def read_excess_blob_gas(self, data: Any, t8n: "T8N") -> None:
135135
# the excess_blob_gas is calculated differently in osaka
136136
assert self.parent_base_fee_per_gas is not None
137137

138-
GAS_PER_BLOB = t8n.fork.GAS_PER_BLOB
139-
BLOB_BASE_COST = t8n.fork.BLOB_BASE_COST
140-
BLOB_SCHEDULE_MAX = t8n.fork.BLOB_SCHEDULE_MAX
141-
BLOB_SCHEDULE_TARGET = t8n.fork.BLOB_SCHEDULE_TARGET
138+
GAS_PER_BLOB = t8n.fork.GAS_PER_BLOB # noqa N806
139+
BLOB_BASE_COST = t8n.fork.BLOB_BASE_COST # noqa N806
140+
BLOB_SCHEDULE_MAX = t8n.fork.BLOB_SCHEDULE_MAX # noqa N806
141+
BLOB_SCHEDULE_TARGET = t8n.fork.BLOB_SCHEDULE_TARGET# noqa N806
142142

143143
target_blob_gas_price = Uint(GAS_PER_BLOB)
144144
target_blob_gas_price *= t8n.fork.calculate_blob_gas_price(
@@ -268,7 +268,7 @@ def read_block_difficulty(self, data: Any, t8n: "T8N") -> None:
268268
]
269269
if t8n.fork.is_after_fork("ethereum.byzantium"):
270270
if "parentUncleHash" in data:
271-
EMPTY_OMMER_HASH = keccak256(rlp.encode([]))
271+
EMPTY_OMMER_HASH = keccak256(rlp.encode([])) # noqa N806
272272
self.parent_ommers_hash = Hash32(
273273
hex_to_bytes(data["parentUncleHash"])
274274
)

0 commit comments

Comments
 (0)