style: Consistently use single quotes for string literals in code
This commit is contained in:
parent
f38923e8fb
commit
82cfd45878
|
@ -20,7 +20,7 @@ def filter_samples(
|
||||||
sample_filter: set[str],
|
sample_filter: set[str],
|
||||||
) -> list[ActivitySample]:
|
) -> list[ActivitySample]:
|
||||||
if not sample_filter:
|
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)]
|
return [s for s in samples if set(s.labels).intersection(sample_filter)]
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ from personal_data.fetchers.myanimelist import parse_name
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
("input_str", "expected_group1", "expected_group2"),
|
('input_str', 'expected_group1', 'expected_group2'),
|
||||||
[
|
[
|
||||||
('"Soundscape"', 'Soundscape', None),
|
('"Soundscape"', 'Soundscape', None),
|
||||||
('"Soundscape (サウンドスケープ)"', 'Soundscape', 'サウンドスケープ'),
|
('"Soundscape (サウンドスケープ)"', 'Soundscape', 'サウンドスケープ'),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user