ruff B018 (useless expression)

This commit is contained in:
The MMGen Project 2026-08-10 09:54:40 +00:00
commit 5c58ba248e
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2
2 changed files with 3 additions and 3 deletions

View file

@ -30,7 +30,7 @@ class OpSubmit(OpWallet):
opts = ('tx_relay_daemon',)
def post_mount_action(self):
self.tx # trigger an exit if no suitable transaction present
return self.tx # trigger an exit if no suitable transaction present
@property
def tx(self):

View file

@ -17,7 +17,6 @@ indent-style = "tab"
[tool.ruff.lint]
ignore = [
"B006", # Do not use mutable data structures for argument defaults
"B018", # Found useless expression. Either assign it to a variable or remove it.
"BLE001", # Do not catch blind exception: `Exception`
"E722", # bare except
"I001", # Import block is un-sorted or un-formatted
@ -69,7 +68,8 @@ ignore = [
"test/*" = [
"SIM115", # open() with context manager
"ASYNC230", # open() in async func
"ISC004" # Unparenthesized implicit string concatenation in collection
"ISC004", # Unparenthesized implicit string concatenation in collection
"B018" # Found useless expression. Either assign it to a variable or remove it.
]
[tool.pylint.format]