ruff F401 (imported but unused)

This commit is contained in:
The MMGen Project 2026-08-07 09:37:45 +00:00
commit f58f46ca85
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2
3 changed files with 2 additions and 5 deletions

View file

@ -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):

View file

@ -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

View file

@ -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`