Enable the RUF029 lint in Ruff

This commit is contained in:
Adam Turner
2024-11-30 19:21:35 +00:00
parent 6375b342db
commit d796a8ae21
2 changed files with 2 additions and 2 deletions

View File

@@ -244,7 +244,7 @@ select = [
"RUF026", # `default_factory` is a positional-only argument to `defaultdict`
# "RUF027", # Possible f-string without an `f` prefix
"RUF028", # This suppression comment is invalid because {}
# "RUF029", # Function `{name}` is declared `async`, but doesn't `await` or use `async` features.
"RUF029", # Function `{name}` is declared `async`, but doesn't `await` or use `async` features.
"RUF030", # `print()` expression in `assert` statement is likely unintentional
# "RUF031", # Use parentheses for tuples in subscripts.
"RUF032", # `Decimal()` called with float literal argument

View File

@@ -62,7 +62,7 @@ async def coroutinefunc():
pass
async def asyncgenerator():
async def asyncgenerator(): # NoQA: RUF029
yield