mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Enable the RUF029 lint in Ruff
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -62,7 +62,7 @@ async def coroutinefunc():
|
||||
pass
|
||||
|
||||
|
||||
async def asyncgenerator():
|
||||
async def asyncgenerator(): # NoQA: RUF029
|
||||
yield
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user