Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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$
Expand Down
10 changes: 5 additions & 5 deletions tests/test_detect_coverage.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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
Expand All @@ -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"
Expand All @@ -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"
Expand All @@ -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"
Expand Down
Loading