ruff ignore minor cleanup
This commit is contained in:
parent
5e99d02027
commit
44bd8a33f9
1 changed files with 2 additions and 5 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue