Skip to content

Commit

Permalink
Allow fixtures in lint checks
Browse files Browse the repository at this point in the history
  • Loading branch information
dermotduffy committed Oct 22, 2024
1 parent 84203fc commit 4a6b1ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 4a6b1ed

Please sign in to comment.