Skip to content

Commit eba1203

Browse files
pdgendtkartben
authored andcommitted
scripts: west_commands: blobs: Fix linter issues
Fix issues reported by ruff. Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
1 parent 0c18197 commit eba1203

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

.ruff-excludes.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1073,10 +1073,6 @@
10731073
"UP007", # https://docs.astral.sh/ruff/rules/non-pep604-annotation
10741074
"UP035", # https://docs.astral.sh/ruff/rules/deprecated-import
10751075
]
1076-
"./scripts/west_commands/blobs.py" = [
1077-
"F541", # https://docs.astral.sh/ruff/rules/f-string-missing-placeholders
1078-
"I001", # https://docs.astral.sh/ruff/rules/unsorted-imports
1079-
]
10801076
"./scripts/west_commands/build.py" = [
10811077
"E501", # https://docs.astral.sh/ruff/rules/line-too-long
10821078
"I001", # https://docs.astral.sh/ruff/rules/unsorted-imports

scripts/west_commands/blobs.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@
44

55
import argparse
66
import os
7-
from pathlib import Path
87
import sys
98
import textwrap
9+
from pathlib import Path
1010
from urllib.parse import urlparse
1111

1212
from west.commands import WestCommand
13-
1413
from zephyr_ext_common import ZEPHYR_BASE
1514

1615
sys.path.append(os.fspath(Path(__file__).parent.parent))
1716
import zephyr_module
1817

18+
1919
class Blobs(WestCommand):
2020

2121
DEFAULT_LIST_FMT = '{module} {status} {path} {type} {abspath}'
@@ -203,6 +203,6 @@ def do_run(self, args, _):
203203
subcmd = getattr(self, args.subcmd[0])
204204

205205
if args.subcmd[0] != 'list' and args.format is not None:
206-
self.die(f'unexpected --format argument; this is a "west blobs list" option')
206+
self.die('unexpected --format argument; this is a "west blobs list" option')
207207

208208
subcmd(args)

0 commit comments

Comments
 (0)