Skip to content

Commit

Permalink
Enable the RUF029 lint in Ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
AA-Turner committed Nov 30, 2024
1 parent 6375b34 commit d796a8a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/test_util/test_util_inspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ async def coroutinefunc():
pass


async def asyncgenerator():
async def asyncgenerator(): # NoQA: RUF029
yield


Expand Down

0 comments on commit d796a8a

Please sign in to comment.