Skip to content

Commit 979e803

Browse files
committed
adding some final linting exceptions
1 parent a6bd91e commit 979e803

File tree

4 files changed

+11
-8
lines changed

4 files changed

+11
-8
lines changed

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,9 @@ ignore = [
355355
"N806", # Special crypto code absolved of variable naming reqs
356356
"N802" # Special crypto code absolved of function naming reqs
357357
]
358+
"src/ethereum_spec_tools/evm_tools/t8n/evm_trace.py" = [
359+
"N815" # The traces must use camel case in JSON property names
360+
]
358361

359362
[tool.ruff.lint.mccabe]
360363
# Set the maximum allowed cyclomatic complexity. C901 default is 10.

src/ethereum_optimized/state_db.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def get_optimized_state_patches(fork: str) -> Dict[str, Any]:
5959

6060
types_mod = cast(Any, import_module("ethereum." + fork + ".fork_types"))
6161
state_mod = cast(Any, import_module("ethereum." + fork + ".state"))
62-
Account = types_mod.Account
62+
Account = types_mod.Account # noqa N806
6363

6464
has_transient_storage = hasattr(state_mod, "TransientStorage")
6565

src/ethereum_spec_tools/evm_tools/loaders/fixture_loader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def json_to_state(self, raw: Any) -> Any:
6161
"""Converts json state data to a state object"""
6262
state = self.fork.State()
6363
set_storage = self.fork.set_storage
64-
EMPTY_ACCOUNT = self.fork.EMPTY_ACCOUNT
64+
EMPTY_ACCOUNT = self.fork.EMPTY_ACCOUNT # noqa N806
6565

6666
for address_hex, account_state in raw.items():
6767
address = self.fork.hex_to_address(address_hex)

src/ethereum_spec_tools/evm_tools/t8n/evm_trace.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,16 @@ class Trace:
4545
pc: int
4646
op: Optional[Union[str, int]]
4747
gas: str
48-
gas_cost: str
48+
gasCost: str
4949
memory: Optional[str]
50-
mem_size: int
50+
memSize: int
5151
stack: Optional[List[str]]
52-
return_data: Optional[str]
52+
returnData: Optional[str]
5353
depth: int
5454
refund: int
55-
op_name: str
56-
gas_cost_traced: bool = False
57-
error_traced: bool = False
55+
opName: str
56+
gasCostTraced: bool = False
57+
errorTraced: bool = False
5858
precompile: bool = False
5959
error: Optional[str] = None
6060

0 commit comments

Comments
 (0)