From 4a6b1ede49b45cd65923d4a200d618aee1f4248e Mon Sep 17 00:00:00 2001 From: Dermot Duffy Date: Mon, 21 Oct 2024 22:00:48 -0700 Subject: [PATCH] Allow fixtures in lint checks --- .ruff.toml | 1 + tests/utils.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.ruff.toml b/.ruff.toml index f13a537..d22168a 100644 --- a/.ruff.toml +++ b/.ruff.toml @@ -24,6 +24,7 @@ ignore = [ [lint.extend-per-file-ignores] "tests/**/*.py" = [ "S101", # Allow asserts allowed in tests. + "ARG", # All unused arguments for fixtures. ] [lint.flake8-pytest-style] diff --git a/tests/utils.py b/tests/utils.py index 4e6ba62..ef16adb 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -89,7 +89,7 @@ async def __aexit__(self, *args: object, **kwargs: Any) -> None: @callback -async def register_test_view( +async def register_test_view( # noqa: PLR0913 hass: HomeAssistant, proxied_url: ProxiedURL | None = None, exception: Exception | None = None,