From d796a8ae21756ce32561df4f342e5886be8ee88e Mon Sep 17 00:00:00 2001 From: Adam Turner <9087854+aa-turner@users.noreply.github.com> Date: Sat, 30 Nov 2024 19:21:35 +0000 Subject: [PATCH] Enable the RUF029 lint in Ruff --- .ruff.toml | 2 +- tests/test_util/test_util_inspect.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.ruff.toml b/.ruff.toml index f43f5148179..97ba78e7e56 100644 --- a/.ruff.toml +++ b/.ruff.toml @@ -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 diff --git a/tests/test_util/test_util_inspect.py b/tests/test_util/test_util_inspect.py index 5c868efa6e9..8e6c1e01bcb 100644 --- a/tests/test_util/test_util_inspect.py +++ b/tests/test_util/test_util_inspect.py @@ -62,7 +62,7 @@ async def coroutinefunc(): pass -async def asyncgenerator(): +async def asyncgenerator(): # NoQA: RUF029 yield