From 89656514a4b20c78ac6d945c6a1d3868f667d9bb Mon Sep 17 00:00:00 2001 From: Matthew Watkins Date: Tue, 28 Jul 2026 19:16:57 +0100 Subject: [PATCH] Chore: pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: pre-commit-ci[bot] updates: - [github.com/astral-sh/ruff-pre-commit: 2700fd5671c633760d912769c041bfcde2b9a01b → cb8c523fd4835aba42af70f4cad5568db4df0b6c](https://github.com/astral-sh/ruff-pre-commit/compare/2700fd5671c633760d912769c041bfcde2b9a01b...cb8c523fd4835aba42af70f4cad5568db4df0b6c) Signed-off-by: Matthew Watkins --- .pre-commit-config.yaml | 2 +- tests/test_detect_coverage.py | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 24f9494..36ec457 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -51,7 +51,7 @@ repos: types: [yaml] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: 2700fd5671c633760d912769c041bfcde2b9a01b # frozen: v0.15.22 + rev: cb8c523fd4835aba42af70f4cad5568db4df0b6c # frozen: v0.16.0 hooks: - id: ruff files: ^(scripts|tests|custom_components)/.+\.py$ diff --git a/tests/test_detect_coverage.py b/tests/test_detect_coverage.py index f741873..2bcd829 100644 --- a/tests/test_detect_coverage.py +++ b/tests/test_detect_coverage.py @@ -37,7 +37,7 @@ if str(SCRIPTS_DIR) not in sys.path: sys.path.insert(0, str(SCRIPTS_DIR)) -import detect_coverage # noqa: E402 +import detect_coverage FIXTURES = REPO_ROOT / ".fixtures" @@ -411,7 +411,7 @@ def test_project_import_name_returns_empty_when_missing(tmp_path: Path) -> None: @pytest.fixture def collect_output( capsys: pytest.CaptureFixture[str], -) -> Iterator["Callable[[Path, Path | None], dict[str, str]]"]: +) -> Iterator[Callable[[Path, Path | None], dict[str, str]]]: """Run ``main()`` against a fixture and return the parsed KEY=VALUE output. Reading stdout directly via ``capsys`` keeps the test coupled to @@ -438,7 +438,7 @@ def _run(project: Path, config: Path | None) -> dict[str, str]: def test_main_emits_all_keys_for_pkg_source_fixture( - collect_output: "Callable[[Path, Path | None], dict[str, str]]", + collect_output: Callable[[Path, Path | None], dict[str, str]], ) -> None: """The shipping fixture set is the source of truth for the env-var contract.""" project = FIXTURES / "src-layout-pkg-source" @@ -456,7 +456,7 @@ def test_main_emits_all_keys_for_pkg_source_fixture( def test_main_flags_omit_excludes_install_fixture( - collect_output: "Callable[[Path, Path | None], dict[str, str]]", + collect_output: Callable[[Path, Path | None], dict[str, str]], ) -> None: """The new fixture must set both the boolean and the patterns blob.""" project = FIXTURES / "omit-excludes-install" @@ -472,7 +472,7 @@ def test_main_flags_omit_excludes_install_fixture( def test_main_emits_false_for_omit_signal_in_clean_fixture( - collect_output: "Callable[[Path, Path | None], dict[str, str]]", + collect_output: Callable[[Path, Path | None], dict[str, str]], ) -> None: """A clean fixture must report ``false`` and an empty patterns string.""" project = FIXTURES / "src-layout-pkg-source"