Skip to content

Commit 7a5f96e

Browse files
pdgendttomchy
authored andcommitted
[nrf fromtree] 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 <[email protected]> (cherry picked from commit 7f72dd3) Signed-off-by: Tomasz Chyrowicz <[email protected]>
1 parent 875a5db commit 7a5f96e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scripts/west_commands/runners/linkserver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def do_add_parser(cls, parser):
9090
{DEFAULT_LINKSERVER_EXE}''')
9191
# user may need to override settings.
9292
parser.add_argument('--override', required=False, action='append',
93-
help=f'''configuration overrides as defined bylinkserver. Example: /device/memory/0/location=0xcafecafe''')
93+
help='''configuration overrides as defined bylinkserver. Example: /device/memory/0/location=0xcafecafe''')
9494

9595
@classmethod
9696
def do_create(cls, cfg, args):

scripts/west_commands/runners/nrfutil.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def _exec_batch(self):
9797
indent=4) + '\n'
9898

9999
hex_dir = Path(self.hex_).parent
100-
json_file = os.fspath(hex_dir / f'generated_nrfutil_batch.json')
100+
json_file = os.fspath(hex_dir / 'generated_nrfutil_batch.json')
101101

102102
with open(json_file, "w") as f:
103103
f.write(batch)

0 commit comments

Comments
 (0)