project: Fix f-string (UP032)
Derived from pyupgrade, see https://docs.astral.sh/ruff/rules/f-string/ Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
This commit is contained in:
parent
7e28267445
commit
26d92b75c6
|
@ -3162,15 +3162,15 @@ def test_group_filter_imports(manifest_repo):
|
||||||
# Schema version 0.9, group-filter is used by an import: warning.
|
# Schema version 0.9, group-filter is used by an import: warning.
|
||||||
with open(manifest_repo / 'west.yml', 'w') as f:
|
with open(manifest_repo / 'west.yml', 'w') as f:
|
||||||
f.write(textwrap.dedent(
|
f.write(textwrap.dedent(
|
||||||
'''\
|
f'''\
|
||||||
manifest:
|
manifest:
|
||||||
version: 0.9
|
version: 0.9
|
||||||
projects:
|
projects:
|
||||||
- name: project1
|
- name: project1
|
||||||
revision: {}
|
revision: {sha1}
|
||||||
url: ignored
|
url: ignored
|
||||||
import: true
|
import: true
|
||||||
'''.format(sha1)))
|
'''))
|
||||||
m = Manifest.from_file()
|
m = Manifest.from_file()
|
||||||
assert m.group_filter == []
|
assert m.group_filter == []
|
||||||
assert hasattr(m, '_legacy_group_filter_warned')
|
assert hasattr(m, '_legacy_group_filter_warned')
|
||||||
|
|
Loading…
Reference in New Issue