From f58f46ca8508ca8f211d1b7b1264752e0ddf1427 Mon Sep 17 00:00:00 2001 From: The MMGen Project Date: Fri, 7 Aug 2026 09:37:45 +0000 Subject: [PATCH] ruff F401 (imported but unused) --- mmgen/addrgen.py | 2 +- mmgen/proto/eth/rlp/sedes/__init__.py | 2 +- pyproject.toml | 3 --- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/mmgen/addrgen.py b/mmgen/addrgen.py index 3834d19d..28d539ff 100755 --- a/mmgen/addrgen.py +++ b/mmgen/addrgen.py @@ -20,7 +20,7 @@ addrgen: Address generation initialization code for the MMGen suite """ -from .keygen import KeyGenerator # convenience import +from .keygen import KeyGenerator # noqa: F401 (convenience import) # decorator for to_addr() and to_viewkey() def check_data(orig_func): diff --git a/mmgen/proto/eth/rlp/sedes/__init__.py b/mmgen/proto/eth/rlp/sedes/__init__.py index dfae6575..21ee1a29 100644 --- a/mmgen/proto/eth/rlp/sedes/__init__.py +++ b/mmgen/proto/eth/rlp/sedes/__init__.py @@ -3,5 +3,5 @@ from .binary import Binary, binary # noqa: F401 from .boolean import Boolean, boolean # noqa: F401 from .big_endian_int import BigEndianInt, big_endian_int # noqa: F401 from .lists import List # noqa: F401 -from .text import Text, text # noqa: #401 +from .text import Text, text # noqa: F401 from .serializable import Serializable # noqa: F401 diff --git a/pyproject.toml b/pyproject.toml index ce81c0b3..997d29f6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -100,9 +100,6 @@ ignore = [ ] [tool.ruff.lint.per-file-ignores] -"mmgen/proto/eth/pyethereum/*" = [ "F401" ] # imported but unused -"mmgen/proto/eth/rlp/sedes/*" = [ "F401" ] # imported but unused -"mmgen/addrgen.py" = [ "F401" ] # imported but unused "mmgen/tool/*" = [ "F722", # Syntax error in forward annotation "F821" # Undefined name `sstr`