scripts: west_commands: runners: Fix f-string-missing-placeholders (F541)

Constant strings should not be f-strings.

See https://docs.astral.sh/ruff/rules/f-string-missing-placeholders/

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
This commit is contained in:
Pieter De Gendt 2024-11-20 12:12:27 +01:00 committed by Benjamin Cabé
parent c0d08e5212
commit 7f72dd3a0f
2 changed files with 2 additions and 2 deletions

View file

@ -90,7 +90,7 @@ class LinkServerBinaryRunner(ZephyrBinaryRunner):
{DEFAULT_LINKSERVER_EXE}''')
# user may need to override settings.
parser.add_argument('--override', required=False, action='append',
help=f'''configuration overrides as defined bylinkserver. Example: /device/memory/0/location=0xcafecafe''')
help='''configuration overrides as defined bylinkserver. Example: /device/memory/0/location=0xcafecafe''')
@classmethod
def do_create(cls, cfg, args):

View file

@ -108,7 +108,7 @@ class NrfUtilBinaryRunner(NrfBinaryRunner):
indent=4) + '\n'
hex_dir = Path(self.hex_).parent
json_file = os.fspath(hex_dir / f'generated_nrfutil_batch.json')
json_file = os.fspath(hex_dir / 'generated_nrfutil_batch.json')
with open(json_file, "w") as f:
f.write(batch)