1
0

style: Consistently use single quotes for string literals in code

This commit is contained in:
Jon Michael Aanes 2025-04-08 22:54:13 +02:00 committed by Jon Michael Aanes (aider)
parent f38923e8fb
commit 82cfd45878
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ def filter_samples(
sample_filter: set[str],
) -> list[ActivitySample]:
if not sample_filter:
raise ValueError("sample_filter must not be empty")
raise ValueError('sample_filter must not be empty')
return [s for s in samples if set(s.labels).intersection(sample_filter)]

View File

@ -4,7 +4,7 @@ from personal_data.fetchers.myanimelist import parse_name
@pytest.mark.parametrize(
("input_str", "expected_group1", "expected_group2"),
('input_str', 'expected_group1', 'expected_group2'),
[
('"Soundscape"', 'Soundscape', None),
('"Soundscape (サウンドスケープ)"', 'Soundscape', 'サウンドスケープ'),