ruff ignore minor cleanup

This commit is contained in:
The MMGen Project 2026-08-07 09:37:46 +00:00
commit 44bd8a33f9
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2

View file

@ -16,7 +16,7 @@ indent-style = "tab"
[tool.ruff.lint]
ignore = [
"ASYNC221", # Async functions should not run processes with blocking methods
"ASYNC221", # blocking method in async function (mmgen/rpc/backends/curl.py)
"B006", # Do not use mutable data structures for argument defaults
"B009", # Do not call `getattr` with a constant attribute value. It is not any safer than normal property access.
"B010", # Do not call `setattr` with a constant attribute value. It is not any safer than normal property access.
@ -97,10 +97,7 @@ ignore = [
]
[tool.ruff.lint.per-file-ignores]
"mmgen/tool/*" = [
"F722", # Syntax error in forward annotation
"F821" # Undefined name `sstr`
]
"mmgen/tool/*" = [ "F821" ] # Undefined name `sstr`
"mmgen/tool/file.py" = [ "B008" ] # function call in dfl args
"examples/*" = [ "ASYNC230" ] # open() in async function