Skip to content

Commit

Permalink
Apply pre-commit auto fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Jan 20, 2025
1 parent 00d35f6 commit f9e5fe2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions tests/test_quirks.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,9 +434,9 @@ def test_quirk_importable(quirk: CustomDevice) -> None:
"""Ensure all quirks can be imported with a normal Python `import` statement."""

path = f"{quirk.__module__}.{quirk.__name__}"
assert all(
m and m.isidentifier() for m in path.split(".")
), f"{path} is not importable"
assert all(m and m.isidentifier() for m in path.split(".")), (
f"{path} is not importable"
)


def test_quirk_loading_error(tmp_path: Path, caplog) -> None:
Expand Down
6 changes: 3 additions & 3 deletions tests/test_quirks_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ def test_translation_key_and_fallback_name_match() -> None:
quirk_locations, fallback_names = zip(*quirks)
# check that only one fallback name exists for the translation key
# if not, we print the quirk locations to help identify the issue
assert (
len(set(fallback_names)) == 1
), f"Translation key '{translation_key}' is shared by quirks with different fallback names: {quirk_locations}"
assert len(set(fallback_names)) == 1, (
f"Translation key '{translation_key}' is shared by quirks with different fallback names: {quirk_locations}"
)

0 comments on commit f9e5fe2

Please sign in to comment.