From d59084a1faa1d6777dff329acad25af5ba2a8404 Mon Sep 17 00:00:00 2001 From: Adam Turner <9087854+aa-turner@users.noreply.github.com> Date: Mon, 6 Jan 2025 06:05:55 +0000 Subject: [PATCH] Bump Ruff to 0.8.6 --- pyproject.toml | 2 +- tests/roots/test-ext-autodoc/target/wrappedfunction.py | 2 +- tests/test_util/test_util_inspect.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 7c3fb7b8f..ac44ab788 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -81,7 +81,7 @@ docs = [ "sphinxcontrib-websupport", ] lint = [ - "ruff==0.8.5", + "ruff==0.8.6", "mypy==1.14.1", "sphinx-lint>=0.9", "types-colorama==0.4.15.20240311", diff --git a/tests/roots/test-ext-autodoc/target/wrappedfunction.py b/tests/roots/test-ext-autodoc/target/wrappedfunction.py index d02eeb73e..95b0ece0e 100644 --- a/tests/roots/test-ext-autodoc/target/wrappedfunction.py +++ b/tests/roots/test-ext-autodoc/target/wrappedfunction.py @@ -12,6 +12,6 @@ def slow_function(message, timeout): @contextmanager -def feeling_good(x: int, y: int) -> Generator: # NoQA: UP006 +def feeling_good(x: int, y: int) -> Generator: """You'll feel better in this context!""" yield diff --git a/tests/test_util/test_util_inspect.py b/tests/test_util/test_util_inspect.py index f80e25849..68e40ec78 100644 --- a/tests/test_util/test_util_inspect.py +++ b/tests/test_util/test_util_inspect.py @@ -813,10 +813,10 @@ def test_isgenericalias(): T = List[int] # NoQA: UP006 S = list[Union[str, None]] # NoQA: UP007 - C = Callable[[int], None] # NoQA: UP006 # a generic alias not having a doccomment + C = Callable[[int], None] # a generic alias not having a doccomment assert inspect.isgenericalias(C) - assert inspect.isgenericalias(Callable) # NoQA: UP006 + assert inspect.isgenericalias(Callable) assert inspect.isgenericalias(T) assert inspect.isgenericalias(List) # NoQA: UP006 assert inspect.isgenericalias(S)