Skip to content

Commit d796a8a

Browse files
committed
Enable the RUF029 lint in Ruff
1 parent 6375b34 commit d796a8a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.ruff.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ select = [
244244
"RUF026", # `default_factory` is a positional-only argument to `defaultdict`
245245
# "RUF027", # Possible f-string without an `f` prefix
246246
"RUF028", # This suppression comment is invalid because {}
247-
# "RUF029", # Function `{name}` is declared `async`, but doesn't `await` or use `async` features.
247+
"RUF029", # Function `{name}` is declared `async`, but doesn't `await` or use `async` features.
248248
"RUF030", # `print()` expression in `assert` statement is likely unintentional
249249
# "RUF031", # Use parentheses for tuples in subscripts.
250250
"RUF032", # `Decimal()` called with float literal argument

tests/test_util/test_util_inspect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ async def coroutinefunc():
6262
pass
6363

6464

65-
async def asyncgenerator():
65+
async def asyncgenerator(): # NoQA: RUF029
6666
yield
6767

6868

0 commit comments

Comments
 (0)